And just as Allah blessed Joseph with the rescue from the prison He empowered for him in the land of -Egypt- he descending from it any residence he wished. Allah strikes with His mercy whom He wills of His God-fearing servants, and He does not waste the reward of who perfected anything of the righteous deed.