I heard the Messenger of Allah ﷺ say, "I would not exchange this verse for the whole world and everything in it, 'My servants who have transgressed against themselves, do not despair of the mercy of Allah. Indeed, Allah forgives all sins. He is the Forgiving, the Merciful' [Zumar 39:53]."A man asked, "Messenger of Allah, even one who has committed shirk?"The Prophet ﷺ remained silent, then said, "Except one who has committed shirk," repeating it three times.
حدثنا حسن وحجاج قالا حدثنا ابن لهيعة حدثنا أبو قبيل قال سمعت أبا عبد الرحمن المقرئ يقول قال حجاج عن أبي قبيل حدثني أبو عبد الرحمن الجبلاني أنه سمع
سمعت رسول الله ﷺ يقول ما أحب أن لي الدنيا وما فيها بهذه الآية {يا عبادي الذين أسرفوا على أنفسهم لا تقنطوا من رحمة الله إن الله يغفر الذنوب جميعا إنه هو الغفور الرحيم} فقال رجل يا رسول الله فمن أشرك فسكت النبي ﷺ ثم قال إلا من أشرك ثلاث مرات