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.

Psalm 11

1 In the LORD, I take refuge.
How can you say to my soul, “Flee as a bird to your mountain!”
2 For, behold, the wicked bend their bows.
They set their arrows on the strings,
that they may shoot in darkness at the upright in heart.
3 If the foundations are destroyed,
what can the righteous do?
4 The LORD is in his holy temple.
The LORD is on his throne in heaven.
His eyes observe.
His eyes examine the children of men.
5 The LORD examines the righteous,
but the wicked and him who loves violence his soul hates.
6 On the wicked he will rain blazing coals;
fire, sulfur, and scorching wind shall be the portion of their cup.
7 For the LORD is righteous.
He loves righteousness.
The upright shall see his face.

Psalm 61

1 Hear my cry, God.
Listen to my prayer.
2 From the end of the earth, I will call to you, when my heart is overwhelmed.
Lead me to the rock that is higher than I.
3 For you have been a refuge for me,
a strong tower from the enemy.
4 I will dwell in your tent forever.
I will take refuge in the shelter of your wings.
Selah.
5 For you, God, have heard my vows.
You have given me the heritage of those who fear your name.
6 You will prolong the king’s life;
his years shall be for generations.
7 He shall be enthroned in God’s presence forever.
Appoint your loving kindness and truth, that they may preserve him.
8 So I will sing praise to your name forever,
that I may fulfill my vows daily.

 

Psalm 111

1 Praise the LORD!
I will give thanks to the LORD with my whole heart,
in the council of the upright, and in the congregation.
2 The LORD’s works are great,
pondered by all those who delight in them.
3 His work is honor and majesty.
His righteousness endures forever.
4 He has caused his wonderful works to be remembered.
The LORD is gracious and merciful.
5 He has given food to those who fear him.
He always remembers his covenant.
6 He has shown his people the power of his works,
in giving them the heritage of the nations.
7 The works of his hands are truth and justice.
All his precepts are sure.
8 They are established forever and ever.
They are done in truth and uprightness.
9 He has sent redemption to his people.
He has ordained his covenant forever.
His name is holy and awesome!
10 The fear of the LORD is the beginning of wisdom.
All those who do his work have a good understanding.
His praise endures forever!

 

The passages are from the World Messianic Bible.