Awf bin Malik reported,

We were with the Messenger of Allah ﷺ on a journey. One night we made camp, and I went looking for the Prophet's ﷺ tent ropes but could not find them. I came across Muaz bin Jabal and Abu Musa al-Ashari, who asked, "What do you need?"I said, "Where is the Messenger of Allah ﷺ?"They replied, "We do not know."While we were in this state, we heard at the upper end of the valley a rumbling like the sound of a millstone. Soon afterward the Prophet ﷺ came to us.We said, "Messenger of Allah, we lost track of you tonight."He said, "Someone came to me from my Lord and gave me the choice between half of my community entering Paradise or the right of intercession, and I chose intercession."We said, "Prophet of Allah, ask Allah to make us among those for whom you intercede."He said, "O Allah, make them among them."Then we went to the rest of the people and told them, and they said, "Messenger of Allah, ask Allah to make us among those for whom you intercede."He said, "O Allah, make them among them."Then the Messenger of Allah ﷺ said, "I call you to witness that my intercession is for everyone who dies without associating anything with Allah."

Azami 904

Sahih

عن عوف بن مالك الأشجعي قال

كنا مع رسول الله ﷺ في سفر فنزلنا ليلة، فقبضت أطناب النبي ﷺ ثلث أجده، ووجدت معاذ بن جبل وأبا موسى الأشعري قبالا: ما حاجتك؟ فقلت: أين رسول الله ﷺ؟ فقالا: لا ندري فبينا نحن على ذلك، إذ سمعنا في أعلى الوادي هديرا كهدير الزحا، فلم نلبث أن جاء النبي ﷺ. فقلنا: يا رسول الله فقدناك الليلة؟ فقال: إنه أتاني آت من ربي فخيرني بين أن تكون أمتي شطر أهل الجنة وبين الشفاعة، فاخترت الشفاعة. فقلنا: يا نبي الله ادع الله أن يجعلنا من أهل الشفاعة. فقال: اللهم اجعلهم من أهلها. ثم أتينا القوم فأخبرناهم، فقالوا: يا رسول الله ادع الله أن يجعلنا من أهل شفاعتك. فقال: اللهم اجعلهم من أهلها. ثم قال رسول الله ﷺ: أشهدكم أن شفاعتي لكل من مات لا يشرك بالله شيئا.

الأعظمي 904صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in the intercession of the Prophet ﷺ and others
Section
Intercession of the Prophet ﷺ for everyone who said, "There is no god but Allah," and did not associate anything with Allah, even if he committed major sins and deserved the Fire
Numbering
Jami al-Kamil 904 (2nd edition)
Azami 904