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.
muslim:2748bHārūn b. Saʿīd al-Aylī > Ibn Wahb > ʿIyāḍ Wahū Ibn ʿAbdullāh al-Fihrī > Ibrāhīm b. ʿUbayd b. Rifāʿah > Muḥammad b. Kaʿb al-Quraẓī > Abū Ṣirmah > Abū Ayyūb al-Anṣārī

If you were not to commit sins, Allah would have swept you out of existence and would have replaced you by another people who have committed sin, and then asked forgiveness from Allah, and He would have granted them pardon.  

مسلم:٢٧٤٨bحَدَّثَنَا هَارُونُ بْنُ سَعِيدٍ الأَيْلِيُّ حَدَّثَنَا ابْنُ وَهْبٍ حَدَّثَنِي عِيَاضٌ وَهُوَ ابْنُ عَبْدِ اللَّهِ الْفِهْرِيُّ حَدَّثَنِي إِبْرَاهِيمُ بْنُ عُبَيْدِ بْنِ رِفَاعَةَ عَنْ مُحَمَّدِ بْنِ كَعْبٍ الْقُرَظِيِّ عَنْ أَبِي صِرْمَةَ عَنْ أَبِي أَيُّوبَ الأَنْصَارِيِّ

عَنْ رَسُولِ اللَّهِ ﷺ أَنَّهُ قَالَ لَوْ أَنَّكُمْ لَمْ تَكُنْ لَكُمْ ذُنُوبٌ يَغْفِرُهَا اللَّهُ لَكُمْ لَجَاءَ اللَّهُ بِقَوْمٍ لَهُمْ ذُنُوبٌ يَغْفِرُهَا لَهُمْ  


See similar narrations below:

Collected by Suyūṭī
suyuti:18035a
Request/Fix translation

  

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

"لَوْلا أنَّكُمْ تُذْنِبُون لَجَاءَ الله بِقَوْمٍ يُذْنِبُونَ فَيَسْتَغْفِرُونَ الله فَيَغْفرُ لهم".  

[كر] ابن عساكر في تاريخه عن أنس أن أصحاب النبي ﷺ شكوا إليه: إنا نصيب من الذنوب، فقال لهم: فذكره