The righteousness of God as a high tower is a recurring frame in David's Psalms. He was wronged, betrayed, and maligned. He depended on the righteousness of God to defend and vindicate him.
https://raisedtowalk.org/r11
More on Reading through the Psalms
https://raisedtowalk.org/psalms
Passages from the World Messianic Bible