Deuteronomy 6:18

18 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 may enter in and inherit the good land which the LORD swore unto thy fathers

Deuteronomy 6:18 In-Context

16 Ye shall not tempt the LORD your God, as ye tempted him in Massah.
17 Ye shall diligently keep the commandments of the LORD your God and his testimonies and his statutes, which he has commanded thee.
18 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 may enter in and inherit the good land which the LORD swore unto thy fathers
19 so that he will cast out all thine enemies from before thy presence, as the LORD has spoken.
20 And when tomorrow thy son asks thee, saying, What are the testimonies and the statutes and the rights, which the LORD our God has commanded you?
The Jubilee Bible (from the Scriptures of the Reformation), edited by Russell M. Stendal, Copyright © 2000, 2001, 2010