Hadithcore
Mishkat al-Masabih, 2338

Ibn ‘Abbas reported God’s messenger as stating that God has said, “If anyone knows that I have power to forgive sins I will pardon him and not care, so long as he associatesi nothing with me.” It is transmitted in <i>Sharh as-sunna.</i>

وَعَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا عَنِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ:

قَالَ اللَّهُ تَعَالَى: مَنْ عَلِمَ أَنِّي ذُو قُدْرَةٍ عَلَى مَغْفِرَةِ الذُّنُوبِ غَفَرْتُ لَهُ وَلَا أُبَالِي مَا لم تشرك بِي شَيْئا

. رَوَاهُ فِي شرح السّنة

References1 variant
In-Book Reference
Book 9, Hadith 111