Deuteronomy 6:18

18 Do what is right and good in the LORD's eyes. Then things will go well with you. You will go in and take over the land. It's the good land the LORD promised with an oath to your people long ago.

Deuteronomy 6:18 Meaning and Commentary

Deuteronomy 6:18

And thou shalt do that which is right and good in the sight of
the Lord
And what is such appears from the declaration of his mind and will in the commandments he has given, and obeying which is therefore doing what is right and good; for his commandment is holy, just, and good, being agreeable both to his nature and will, ( Romans 7:12 ) that it may be well with thee; as it is with those that fear God, and keep his commandments:

and that thou mayest go in and possess the good land which the Lord
sware unto thy fathers;
to give to them and to their posterity, even the land of Canaan; but if they did not what was right and good in the sight of God, they might expect to be kept out of it, as their immediate parents were, whose carcasses fell in the wilderness.

Deuteronomy 6:18 In-Context

16 Don't put the LORD your God to the test as you did at Massah.
17 Be sure to obey the LORD's commands. Follow the terms and rules he has given you.
18 Do what is right and good in the LORD's eyes. Then things will go well with you. You will go in and take over the land. It's the good land the LORD promised with an oath to your people long ago.
19 You will drive out all of your enemies to make room for you. That's what the LORD said would happen.
20 Later on, your son might ask you, "What is the meaning of the terms, rules and laws the LORD our God has commanded you to obey?"
Holy Bible, New International Reader's Version® Copyright © 1995, 1996, 1998 by Biblica.   All rights reserved worldwide.