bible.com/bible/100/deu.31.6.NASB1995
From John MacArthur Study Bible
The strength and courage of the warriors of Israel would come from their confidence that their God was with them and would not forsake them. In vv. 7, 8, Moses repeated the substance of his exhortation, this time addressing it specifically to Joshua in the presence of the people to encourage him and to remind the people that Joshua’s leadership was being assumed with the full approval of God.being assumed with the full approval of God.