17 Be sure to keep the commands of the Lord your God and the stipulations and decrees he has given you. 18 Do what is right and good in the Lord's sight, so that it may go well with you and you may go in and take over the good land the Lord promised on oath to your ancestors, 19 thrusting out all your enemies before you, as the Lord said. 20 In the future, when your son asks you, "What is the meaning of the stipulations, decrees and laws the Lord our God has commanded you?" 21 tell him: "We were slaves of Pharaoh in Egypt, but the Lord brought us out of Egypt with a mighty hand. 22 Before our eyes the Lord sent signs and wonders-great and terrible-on Egypt and Pharaoh and his whole household. 23 But he brought us out from there to bring us in and give us the land he promised on oath to our ancestors. 24 The Lord commanded us to obey all these decrees and to fear the Lord our God, so that we might always prosper and be kept alive, as is the case today. 25 And if we are careful to obey all this law before the Lord our God, as he has commanded us, that will be our righteousness."