Deuteronomy 6:25

23 And he brought us out from thence, that he might bring us in, to give us the land which he sware unto our fathers.

24 And the LORD commanded us to do all these statutes, to fear the LORD our God, for our good always, that he might preserve us alive, as it is at this day.

And it shall be our righteousness, if we observe to do all these commandments before the LORD our God, as he hath commanded us.

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

Compare

BSB
And if we are careful to observe every one of these commandments before the LORD our God, as He has commanded us, then that will be our righteousness.”
KJV
And it shall be our righteousness, if we observe to do all these commandments before the LORD our God, as he hath commanded us.
WEB
It shall be righteousness to us, if we observe to do all these commandments before the LORD our God, as he has commanded us.”
ASV
And it shall be righteousness unto us, if we observe to do all this commandment before Jehovah our God, as he hath commanded us.
DARBY
And it shall be our righteousness if we take heed to do all these commandments before Jehovah our God, as he hath commanded us.
BLB
And it will be righteousness for us if we are careful to observe all this command before the face of YHWH our God, as He has commanded us.”
ÅB
Og det skal tjene oss til rettferdighet, når vi akter vel på å holde alle disse bud for Herrens, vår Guds åsyn, slik som han befalte oss.
OTB
Og det vil være vår rettferdighet hvis vi er nøye med å adlyde hele dette budet for Herren vår Gud, slik Han har befalt oss.
B1930
Og det skal tjene oss til rettferdighet, når vi akter vel på å holde alle disse bud for Herrens, vår Guds åsyn, således som han bød oss.

Study notes (Tyndale)

Original text and word study

Cross references