Anas bin Malik reported,

The Messenger of Allah ﷺ said, "Allah will gather the people on the Day of Resurrection, and they will be distressed by that." He then mentioned the hadith of intercession, in which it is said,"... Nuh عليه السلام will say, 'Go instead to Ibrahim ﷺ, whom Allah took as an intimate friend.' So they will come to Ibrahim ﷺ, and he will say, 'I am not the one for that.' He will mention the sin he had committed, feeling ashamed before his Lord on account of it. He will say, 'But go to Musa ﷺ, whom Allah spoke to directly and to whom He gave the Torah...'" and the hadith continues.

Azami 8369

Sahih

عن أنس بن مالك قال

قال رسول الله ﷺ: يجمع الله الناس يوم القيامة فيهتمون لذلك فذكر حديث الشفاعة وفيه:… يقول نوح عليه السلام: ولكن ائتوا إبراهيم ﷺ الذي اتخذه الله خليلا فيأتون إبراهيم ﷺ فيقول: لست هناكم ويذكر خطيئته التي أصاب فيستحي ربه منها ولكن ائتوا موسى ﷺ الذي كلمه الله وأعطاه التوراة… الحديث.

الأعظمي 8369صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Stories of the prophets
Chapter
Ibrahim and his sons, peace be upon them
Section
Ibrahim عليه السلام is the Khalil of Allah
Numbering
Jami al-Kamil 8369 (2nd edition)
Azami 8369