Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:5303a

from the Messenger of Allah ﷺ who said, "Allah ﷻ says: O My servant, as long as you worship Me and place your hopes in Me, I will forgive you despite what you have done. And O My servant, if you meet Me with enough sins to fill the earth while not associating anything with Me, I will meet you with as much forgiveness." (Using translation from Aḥmad 21368)   

السيوطي:٥٣٠٣a

"إِن الله تَعَالى يَقُولُ: يَا عَبْدِي مَا عَبَدتَنِى وَرَجَوْتَنِى فَإِنِّي غَافِر لَكَ مَا كانَ فِيَكَ، وَيَا عَبْدِي إن لَقِيتَنِى بِقُرَابِ الأرْضِ خَطيئةً -ما لمْ تُشْرك بي- لَقِيتُكَ بِقُرابِها مغْفِرَةً".  

[حم] أحمد عن أبي ذر

See similar narrations below:

Collected by Aḥmad
ahmad:21368Hāshim b. al-Qāsim > ʿAbd al-Ḥamīd > Shahr > Ibn Ghanm > Abū Dhar

from the Messenger of Allah ﷺ who said, "Allah ﷻ says: O My servant, as long as you worship Me and place your hopes in Me, I will forgive you despite what you have done. And O My servant, if you meet Me with enough sins to fill the earth while not associating anything with Me, I will meet you with as much forgiveness."  

أحمد:٢١٣٦٨حَدَّثَنَا هَاشِمُ بْنُ الْقَاسِمِ؛ حَدَّثَنَا عَبْدُ الْحَمِيدِ؛ حَدَّثَنَا شَهْرٌ؛ حَدَّثَنِي ابْنُ غَنْمٍ؛ أَنَّ أَبَا ذَرٍّ حَدَّثَهُ

عَنْ رَسُولِ اللهِ ﷺ قَالَ: «إِنَّ اللهَ ﷻ يَقُولُ يَا عَبْدِي مَا عَبَدْتَنِي وَرَجَوْتَنِي فَإِنِّي غَافِرٌ لَكَ عَلَى مَا كَانَ فِيكَ۔ وَيَا عَبْدِي إِنْ لَقِيتَنِي بِقُرَابِ الْأَرْضِ خَطِيئَةً مَا لَمْ تُشْرِكْ بِي لَقِيتُكَ بِقُرَابِهَا مَغْفِرَةً۔»