Deuteronomy 34:9
Now Joshua the son of Nun was full of the spirit of wisdom, for Moses had laid his hands on him; so the children of Israel heeded him, and did as the Lord had commanded Moses.
2 Chronicles 17:4 (NLT)
He sought his father’s God and obeyed his commands instead of following the evil practices of the kingdom of Israel.