Psalms 7:10

8 The LORD shall judge the people: judge me, O LORD, according to my righteousness, and according to mine integrity that is in me.

9 Oh let the wickedness of the wicked come to an end; but establish the just: for the righteous God trieth the hearts and reins.

My defence is of God, which saveth the upright in heart.

11 God judgeth the righteous, and God is angry with the wicked every day.

12 If he turn not, he will whet his sword; he hath bent his bow, and made it ready.

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

Compare

BSB
My shield is with God, who saves the upright in heart.
KJV
My defence is of God, which saveth the upright in heart.
WEB
My shield is with God, who saves the upright in heart.
ASV
My shield is with God, Who saveth the upright in heart.
DARBY
My shield is with God, who saveth the upright in heart.
BLB
My shield [is] on God, the One saving the upright of heart.
ÅB
Mitt skjold er hos Gud,
som redder de oppriktige av hjertet.
OTB
Min beskyttelse er hos Gud,
Som redder dem som er oppriktige av hjertet.
B1930
Mitt skjold er hos Gud, som frelser de opriktige av hjertet.

Study notes (Tyndale)

Original text and word study

Cross references