the Lord works in mysterious ways
A phrase said when things have not happened as one had hoped or expected. It implies that everything happens for a reason. I know you were really excited about that job, but maybe it's for the best that you didn't get it—the Lord works in mysterious ways, after all. I thought that getting divorced would be the worst experience of my life, but then I fell in love with my divorce lawyer. The Lord works in mysterious ways!