Deuteronomy 6:18

And do what is pleasing and good in the sight of the Lord, so that it may be well with you, and so that, when you enter, you may possess the excellent land, about which the Lord swore to your father

Other versions

King James Version

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,

English Standard Version

And you shall do what is right and good in the sight of the LORD, that it may go well with you, and that you may go in and take possession of the good land that the LORD swore to give to your fathers

New International Version

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 that the LORD promised on oath to your forefathers,