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.
ahmad:12538ʿAbd al-Ṣamad And ʿAffān > Ḥammād > Thābit > Anas

O Allah, if Thou wilt (defeat Muslims), there will be none on the earth to worship Thee. (Using translation from Muslim 1743)  

أحمد:١٢٥٣٨حَدَّثَنَا عَبْدُ الصَّمَدِ وَعَفَّانُ قَالَا حَدَّثَنَا حَمَّادٌ حَدَّثَنَا ثَابِتٌ عَنْ أَنَسٍ

أَنَّ رَسُولَ اللهِ ﷺ كَانَ يَقُولُ يَوْمَ أُحُدٍ اللهُمَّ إِنَّكَ إِنْ تَشَأْ أَنْ لَا تُعْبَدَ فِي الْأَرْضِ  


See similar narrations below:

Collected by Muslim, Aḥmad
muslim:1743Ḥajjāj b. al-Shāʿir > ʿAbd al-Ṣamad > Ḥammād > Thābit > Anas

O Allah, if Thou wilt (defeat Muslims), there will be none on the earth to worship Thee.  

مسلم:١٧٤٣وَحَدَّثَنِي حَجَّاجُ بْنُ الشَّاعِرِ حَدَّثَنَا عَبْدُ الصَّمَدِ حَدَّثَنَا حَمَّادٌ عَنْ ثَابِتٍ عَنْ أَنَسٍ

أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ يَقُولُ يَوْمَ أُحُدٍ اللَّهُمَّ إِنَّكَ إِنْ تَشَأْ لاَ تُعْبَدْ فِي الأَرْضِ  

ahmad:13649ʿAffān > Ḥammād > Thābit al-Bunānī > Anas b. Mālik

O Allah, if Thou wilt (defeat Muslims), there will be none on the earth to worship Thee. (Using translation from Muslim 1743)  

أحمد:١٣٦٤٩حَدَّثَنَا عَفَّانُ حَدَّثَنَا حَمَّادٌ قَالَ أَخْبَرَنَا ثَابِتٌ الْبُنَانِيُّ عَنْ أَنَسِ بْنِ مَالِكٍ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ يَوْمَ أُحُدٍ اللهُمَّ إِنَّكَ إِنْ تَشَأْ لَا تُعْبَدْ فِي الْأَرْضِ