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.
ibnmajah:4248Yaʿqūb b. Ḥumayd b. Kāsib al-Madanī > Abū Muʿāwiyah > Jaʿfar b. Burqān > Yazīd b. al-Aṣam > Abū Hurayrah

“If you were to commit sin until your sins reach the heaven, then you were to repent, your repentance would be accepted.”  

ابن ماجة:٤٢٤٨حَدَّثَنَا يَعْقُوبُ بْنُ حُمَيْدِ بْنِ كَاسِبٍ الْمَدَنِيُّ حَدَّثَنَا أَبُو مُعَاوِيَةَ حَدَّثَنَا جَعْفَرُ بْنُ بُرْقَانَ عَنْ يَزِيدَ بْنِ الأَصَمِّ عَنْ أَبِي هُرَيْرَةَ

عَنِ النَّبِيِّ ﷺ قَالَ لَوْ أَخْطَأْتُمْ حَتَّى تَبْلُغَ خَطَايَاكُمُ السَّمَاءَ ثُمَّ تُبْتُمْ لَتَابَ عَلَيْكُمْ  


See similar narrations below:

Collected by Suyūṭī