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