Almighty Allah said: And the king said. "Bring him to me that I may attach him to my person." Then, when he spoke to him, he said: "Verily, this day, you are with us high in rank and fully trusted."
(Joseph) said: "Set me over the store-houses of the land; I will indeed guard them with full knowledge" (as a minister of finance in Egypt. in place of Al- Aziz who was dead at that time).
Thus did We give full authority to Joseph in the land, to take possession therein, as when or where he likes. We bestow of Our Mercy on whom We please, and We make not to be lost the reward of Al-Muhsineen (the good-doers). Surah 12: 54-57