Deuteronomy 6:18

King James Version Bible (KJV)
And thou shalt do that which is right and good in the sight of the Lord: that it may be well with thee, and that thou mayest go in and possess the good land which the Lord sware unto thy fathers.

Read Deuteronomy 6:18 in other translations