In Genesis chapter 18, we read that God intended to destroy the cities of Sodom and Gomorrah because of their great sin. But Abraham—who understood his covenant rights in prayer—intervened on behalf of the two cities, and made a deal with God!
GENESIS 18:22–25
22 And the men turned their faces from thence, and went toward Sodom: but Abraham stood yet before the Lord.
23 And Abraham drew near, and said, Wilt thou also destroy the righteous with the wicked?
24 Peradventure there be fifty righteous within the city: wilt thou also destroy and not spare the place for the fifty righteous that are therein?
25 That be far from thee to do after this manner, to slay the righteous with the wicked: and that the righteous should be as the wicked, that be far from thee: Shall not the Judge of all the earth do right?
Abraham realized he had covenant standing with God; the two of them had a covenant with each other. That covenant provided both parties with certain rights. And Abraham knew he had covenant rights in prayer. Abraham knew he had rights and privileges that gave him legal standing with God. So we hear him speak plainly, “Shall not the Judge of all the earth do right” (v. 25).
from
https://www.rhema.org/index.php?opt...d=244:authority-in-prayer&catid=47&Itemid=147