The Messenger of Allah ﷺ said, "We have more right to doubt than Ibrahim when he said, 'My Lord, show me how You give life to the dead.' He said, 'Have you not believed?' He said, 'Yes, but only that my heart may be reassured' [Baqarah 2:260]. May Allah have mercy on Lut, for he sought refuge in a mighty support. And had I stayed in prison as long as Yusuf did, I would have answered the summoner."
حدثنا حرملة بن يحيى ويونس بن عبد الأعلى قالا حدثنا عبد الله بن وهب أخبرني يونس بن يزيد عن ابن شهاب عن أبي سلمة بن عبد الرحمن بن عوف وسعيد بن المسيب
قال رسول الله ﷺ نحن أحق بالشك من إبراهيم إذ قال رب أرني كيف تحيي الموتى قال أولم تؤمن قال بلى ولكن ليطمئن قلبي ويرحم الله لوطا لقد كان يأوي إلى ركن شديد ولو لبثت في السجن طول ما لبث يوسف لأجبت الداعي
Bukhari narrated it in the tafsir section, in the chapter "And when Ibrahim said, My Lord, show me...", hadith no. 4537, from the hadith of Ibn Wahb, with the same wording. Muslim also narrated it in the book of faith, in the chapter on the increase of the heart's tranquility through the corroboration of evidences, hadith no. 151, from Harmala.