the/an answer to (one's) prayer(s)
The perfect solution to a desperate need. Can be used literally (when one has actually prayed) or in a more figurative sense. I really believe this job was the answer to my prayer for a better life. This grant is an answer to our prayers. The center can stay open now!
the ˌanswer to somebody’s ˈprayers
a thing or a person that somebody has waited for or wanted for a long time: If you’ve been looking for a good quality fleece at a reasonable price, this one could be the answer to your prayers.