‘ And he would not for a while: but afterward he said within himself, Though I fear not God, nor regard man; And there was a widow in that city; and she came unto him, saying, Avenge me of mine adversary. Yet because this widow troubleth me, I will avenge her, lest by her continual coming she weary me. And the Lord said, Hear what the unjust judge saith. And shall not God avenge his own elect, which cry day and night unto him, though he bear long with them? I tell you that he will avenge them speedily. Nevertheless when the Son of man cometh, shall he find faith on the earth? Saying, There was in a city a judge, which feared not God, neither regarded man: And he spake a parable unto them to this end, that men ought always to pray, and not to faint; ‘ Luke 18:1-8 https://my.bible.com/bible/1/LUK.18.1-8
This is just as much about the persistence of prayer as it is about what you pray. She did not pray for a specific thing she prayed for justice. And God can swiftly give Justice, or as we see another passages God can swiftly bless you. But it may not be exactly what you wanted, because God knows best.