The Messenger of Allah ﷺ said, "Had I remained in prison as long as Yusuf remained, and then the summoner came to me, I would have answered him at once." For when the messenger came to Yusuf, he said, "Return to your master and ask him about the case of the women who cut their hands. Indeed, my Lord is well aware of their scheming" [Yusuf 12:50]."And may Allah have mercy on Lut. He was already leaning on a mighty support when he said to his people, 'If only I had power against you, or could take refuge in some mighty support'" [Hud 11:80]. "And Allah never sent a prophet after him except from among the powerful and well-established of his people."
وقال رسول الله ﷺ لو لبثت في السجن ما لبث يوسف ثم جاءني الداعي لأجبته إذ جاءه الرسول فقال {ارجع إلى ربك فاسأله ما بال النسوة اللاتي قطعن أيديهن إن ربي بكيدهن عليم} ورحمة الله على لوط إن كان ليأوي إلى ركن شديد إذ قال لقومه {لو أن لي بكم قوة أو آوي إلى ركن شديد} وما بعث الله من بعده من نبي إلا في ثروة من قومه