Yahweh is the righteous Judge, and we can trust Him to do what is right, even if for now we must endure many injustices in the present evil world.
When Abraham bargained with Yahweh to save Sodom, according to Genesis 18:25, he understood that the Judge of the whole earth always judges righteously. Moses repeatedly taught Israel about the righteousness and justice of Yahweh.
For the LORD [Yahweh] your God is the God of gods and the Lord of lords, the great, the mighty, and the awesome God who does not show partiality, nor take a bribe.
For I proclaim the name of the LORD [Yahweh]; Ascribe greatness to our God!
The Rock! His work is perfect, for all His ways are just; A God of faithfulness and without injustice, Righteous and upright is He.
The psalmists frequently write about Yahweh as the Judge of the world and that He is always right, just, and equitable in all His dealings.
The heavens are Yours, the earth also is Yours; The world and all it contains, You have founded them.
The north and the south, You have created them; Tabor and Hermon shout for joy at Your name.
You have a strong arm; Your hand is mighty, Your right hand is exalted.
Righteousness and justice are the foundation of Your throne; Lovingkindness and truth go before You.
Before the LORD, for He is coming to judge the earth; He will judge the world with righteousness, and the peoples with equity.
Jesus believed that Yahweh is the Judge of the world and trusted that He would righteously judge everyone; therefore, on the cross he could surrender justice to God.
For you have been called for this purpose, since Christ also suffered for you, leaving you an example for you to follow in His steps,
who committed no sin, nor was any deceit found in His mouth;
and while being reviled, He did not revile in return; while suffering, He uttered no threats, but kept entrusting Himself to Him who judges righteously;
Like Jesus, we too can leave justice to the only righteous Judge and not get caught up in revenge and all the other snares that exist in this corrupt, unrighteous world. We can let it go and trust that Yahweh will take care of justice.
Never pay back evil for evil to anyone. Respect what is right in the sight of all men.
If possible, so far as it depends on you, be at peace with all men.
Never take your own revenge, beloved, but leave room for the wrath of God, for it is written, "Vengeance is Mine, I will repay," says the Lord.
But if your enemy is hungry, feed him, and if he is thirsty, give him a drink; for in so doing you will heap burning coals upon his head."
Do not be overcome by evil, but overcome evil with good.