1 Kings 2:3

1 Now the days of David drew nigh that he should die; and he charged Solomon his son, saying,

2 I go the way of all the earth: be thou strong therefore, and shew thyself a man;

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:

4 That the LORD may continue his word which he spake concerning me, saying, If thy children take heed to their way, to walk before me in truth with all their heart and with all their soul, there shall not fail thee (said he) a man on the throne of Israel.

5 Moreover thou knowest also what Joab the son of Zeruiah did to me, and what he did to the two captains of the hosts of Israel, unto Abner the son of Ner, and unto Amasa the son of Jether, whom he slew, and shed the blood of war in peace, and put the blood of war upon his girdle that was about his loins, and in his shoes that were 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