Abu Hurairah reported,

The Messenger of Allah ﷺ said, "May Allah have mercy on Lut. He sought refuge in a strong support. And had I remained in prison as long as Yusuf did, then the summoner came to me, I would have answered him."

Bukhari 3387

Sahih

حدثنا عبد الله بن محمد بن أسماء هو ابن أخي جويرية حدثنا جويرية بن أسماء عن مالك عن الزهري أن سعيد بن المسيب وأبا عبيد أخبراه

عن أبي هريرة رضي الله عنه قال

قال رسول الله ﷺ يرحم الله لوطا لقد كان يأوي إلى ركن شديد ولو لبثت في السجن ما لبث يوسف ثم أتاني الداعي لأجبته

البخاري 3387صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hadiths of the prophets
Chapter
Saying of Allah Most High, "Verily in Yusuf and his brothers were signs for those who ask"
Numbering
Darussalam 3387
Bukhari 3387