Prophet Joseph - 12:21 "The one who bought him in Egypt said to his wife, "Take good care of him, lest he be of use to us, or we adopt him as our son."So We placed Joseph on the earth and taught him the interpretation of dreams. God is the Exalted in His work, but most of the people do not know it."
Allah is the Exalted in His work:
The Spoils of War/8:42 When you were on the far side of the valley and they were on the far side of the valley. And the caravan was lower than you. If you had decided on this encounter, you would have disagreed about it. But Allah was carrying out a pre-planned deed. So that that which is destroyed may be destroyed with a clear proof, and that which lives may be kept alive with a clear proof. Allah is All-Hearing, All-Knowing.

Prophet Joseph/12:15 "When they took him away and decided collectively to throw him into the bottom of the well, We revealed to him: "(Do not grieve) You will tell them what they have done when they will not be aware of it."
Prophet Joseph/12:100 "He raised his parents on the throne. They all prostrated themselves for him. He said: "My father, this is the fulfillment of the dream which I had before. My Lord has fulfilled it, and He has been kind to me by bringing me out of prison and bringing you from the desert after Satan had driven a wedge between me and my brothers. Indeed, my Lord is very compassionate to whom He wills. He is Knowing, Wise."