My father actually said that to me about some jobs he wanted but never got. "Thank God my prayers weren't answered." But it is a bitter pill nonetheless at the time it is happening. I've certainly experienced this.
I had a portrait studio for 40 years and there were many jobs I wished I hadn't got! I could write a book