The angels went on from there to Sodom, while Abraham remained standing before יהוה. Abraham came forward and said, “Will You sweep away the innocent along with the guilty? What if there should be fifty innocent within the city; will You then wipe out the place and not forgive it for the sake of the innocent fifty who are in it? Far be it from You to do such a thing, to bring death upon the innocent as well as the guilty, so that innocent and guilty fare alike. Far be it from You! Shall not the Judge of all the earth deal justly?” And יהוה answered, “If I find within the city of Sodom fifty innocent ones, I will forgive the whole place for their sake.” Abraham spoke up, saying, “Here I venture to speak to my lord, I who am but dust and ashes: What if the fifty innocent should lack five? Will You destroy the whole city for want of the five?” “I will not destroy if I find forty-five there.” But he spoke up again, and said, “What if forty should be found there?” “I will not do it, for the sake of the forty.” And he said, “Let not my lord be angry if I go on: What if thirty should be found there?” “I will not do it if I find thirty there.” And he said, “I venture again to speak to my lord: What if twenty should be found there?” “I will not destroy, for the sake of the twenty.” And he said, “Let not my lord be angry if I speak but this last time: What if ten should be found there?” “I will not destroy, for the sake of the ten.” Having finished speaking to Abraham, יהוה departed; and Abraham returned to his place.
— Genesis 18:22-33
Then Jesus told them a parable about their need to pray always and not to lose heart. He said, “In a certain city there was a judge who neither feared God nor had respect for people. In that city there was a widow who kept coming to him and saying, ‘Grant me justice against my accuser.’ For a while he refused, but later he said to himself, ‘Though I have no fear of God and no respect for anyone, yet because this widow keeps bothering me, I will grant her justice, so that she may not wear me out by continually coming.’" And the Lord said, “Listen to what the unjust judge says. And will not God grant justice to his chosen ones who cry to him day and night? Will he delay long in helping them? I tell you, he will quickly grant justice to them. And yet, when the Son of Man comes, will he find faith on earth?”
— Luke 18:1-8