1 Kings 2:3

1 As the time drew near for David to die, he charged his son Solomon,

2 “I am about to go the way of all the earth. So be strong and prove yourself a man.

And keep the charge of the LORD your God to walk in His ways and to keep His statutes, commandments, ordinances, and decrees, as is written in the Law of Moses, so that you may prosper in all you do and wherever you turn,

4 and so that the LORD may fulfill His promise to me: ‘If your descendants take heed to walk faithfully before Me with all their heart and soul, you will never fail to have a man on the throne of Israel.’

5 Moreover, you know what Joab son of Zeruiah did to me—what he did to Abner son of Ner and Amasa son of Jether, the two commanders of the armies of Israel. He killed them in peacetime to avenge the blood of war. He stained with the blood of war the belt around his waist and the sandals on his feet.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
And keep the charge of the LORD your God to walk in His ways and to keep His statutes, commandments, ordinances, and decrees, as is written in the Law of Moses, so that you may prosper in all you do and wherever you turn,
KJV
And keep the charge of the LORD thy God, to walk in his ways, to keep his statutes, and his commandments, and his judgments, and his testimonies, as it is written in the law of Moses, that thou mayest prosper in all that thou doest, and whithersoever thou turnest thyself:
WEB
and keep the instruction of the LORD your God, to walk in his ways, to keep his statutes, his commandments, his ordinances, and his testimonies, according to that which is written in the law of Moses, that you may prosper in all that you do and wherever you turn yourself.
ASV
and keep the charge of Jehovah thy God, to walk in his ways, to keep his statutes, [and] his commandments, and his ordinances, and his testimonies, according to that which is written in the law of Moses, that thou mayest prosper in all that thou doest, and whithersoever thou turnest thyself.
DARBY
and keep the charge of Jehovah thy God, to walk in his ways, to keep his statutes, and his commandments, and his ordinances, and his testimonies, as it is written in the law of Moses, that thou mayest prosper in all that thou doest and whithersoever thou turnest thyself;
BLB
And you shall keep the charge of YHWH your God, to walk in His ways, to keep His statutes, His commandments, and His ordinances, and His testimonies, as it is written in the Law of Moses, that you may prosper in all that you do, and all wherever you turn in it,
ÅB
Og ta vare på hva Herren din Gud vil ha varetatt, så du vandrer på hans veier og holder hans forskrifter, hans bud og hans lover og hans vitnesbyrd, som der er skrevet i Mose lov, så du kan gå viselig fram i alt det du gjør og i alt du gir deg i ferd med,
OTB
Hold Herrens, din Guds, bud, gå på Hans veier, hold Hans lover, Hans bud, Hans dommer og Hans vitnesbyrd, slik det er skrevet i Mose lov, så du kan ha fremgang i alt du gjør og hvor du enn vender deg,
B1930
Og ta vare på hvad Herren din Gud vil ha varetatt, så du vandrer på hans veier og holder hans forskrifter, hans bud og hans lover og hans vidnesbyrd, som der er skrevet i Mose lov, så du kan gå viselig frem i alt det du gjør og i alt du gir dig i ferd med,

Study notes (Tyndale)

Original text and word study

Cross references