the answer to somebody's prayers
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!
See also: answer