I heard the Messenger of Allah ﷺ say, "Indeed, Allah does not punish..." and he mentioned the rest of the hadith.
حدثنا أحمد بن الحجاج قال حدثنا عبد الله يعني ابن مبارك قال أخبرنا سيف بن أبي سليمان قال سمعت
سمعت رسول الله ﷺ يقول إن الله عز وجل لا يعذب فذكر الحديث
Its isnad is daif due to the anonymity of the narrator from Adi, but the hadith is sahih, having previously appeared at 17650.