Fulton J. Sheen said this quote

You cannot always depend on prayers to be answered the way you want them answered but you can always depend on God. God, the loving Father often denies us those things which in the end would prove harmful to us. Every boy wants a revolver at age four, and no father yet has ever granted that request. Why should we think God is less wise? Someday we will thank God not only for what He gave us, but also for that which He refused.