Psalms 125:4

2 As the mountains surround Jerusalem, so the LORD surrounds His people, both now and forevermore.

3 For the scepter of the wicked will not rest upon the land allotted to the righteous, so that the righteous will not put forth their hands to injustice.

Do good, O LORD, to those who are good, and to the upright in heart.

5 But those who turn to crooked ways the LORD will banish with the evildoers. Peace be upon Israel.

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

Compare

BSB
Do good, O LORD, to those who are good, and to the upright in heart.
KJV
Do good, O LORD, unto those that be good, and to them that are upright in their hearts.
WEB
Do good, LORD, to those who are good, to those who are upright in their hearts.
ASV
Do good, O Jehovah, unto those that are good, And to them that are upright in their hearts.
DARBY
Do good, O Jehovah, unto the good, and to them that are upright in their hearts.
BLB
Do good, O YHWH, to the good, and to the upright in their hearts!
ÅB
Gjør godt, Herre, mot de gode, mot dem som er oppriktige i sine hjerter!
OTB
Vis godhet, Herre, mot dem som er gode,
Og mot dem som er oppriktige i hjertet.
B1930
Gjør godt, Herre, mot de gode, mot dem som er opriktige i sine hjerter!

Study notes (Tyndale)

Original text and word study

Cross references