Before Joshua led the people into conquer the Promised Land He was told to faithfully keep God’s Laws and stay strong. When King David was giving the instruction to his son Solomon to build the Temple for God he spoke similar words.
1 Chronicles 28:
8 “So now, with God as our witness, and in the sight of all Israel—the Lord’s assembly—I give you this charge. Be careful to obey all the commands of the Lord your God, so that you may continue to possess this good land and leave it to your children as a permanent inheritance.
9 “And Solomon, my son, learn to know the God of your ancestors intimately. Worship and serve him with your whole heart and a willing mind. For the Lordsees every heart and knows every plan and thought. If you seek him, you will find him. But if you forsake him, he will reject you forever. 10 So take this seriously. The Lord has chosen you to build a Temple as his sanctuary. Be strong, and do the work.
20 Then David continued, “Be strong and courageous, and do the work. Don’t be afraid or discouraged, for the Lord God, my God, is with you. He will not fail you or forsake you. He will see to it that all the work related to the Temple of the Lord is finished correctly.21 The various divisions of priests and Levites will serve in the Temple of God. Others with skills of every kind will volunteer, and the officials and the entire nation are at your command.”