Deuteronomy 4:40

40 Keep his decrees and commands, which I am giving you today, so that it may go well with you and your children after you and that you may live long in the land the LORD your God gives you for all time.

Read Deuteronomy 4:40 Using Other Translations

Thou shalt keep therefore his statutes, and his commandments, which I command thee this day, that it may go well with thee, and with thy children after thee, and that thou mayest prolong thy days upon the earth, which the LORD thy God giveth thee, for ever.
Therefore you shall keep his statutes and his commandments, which I command you today, that it may go well with you and with your children after you, and that you may prolong your days in the land that the LORD your God is giving you for all time."
If you obey all the decrees and commands I am giving you today, all will be well with you and your children. I am giving you these instructions so you will enjoy a long life in the land the LORD your God is giving you for all time.”