Jami` at-Tirmidhi, Book 47, Hadith 3273 (In-Book)

Narrated Anas: "The face of the Messenger of Allah was wounded, his incisors were broken, and he was struck by an arrow on his shoulder. While blood was flowing over his face and he was wiping it, he said: 'How can a nation succeed while they are doing this to their Prophet and he is calling them to Allah?' So Allah, Most High revealed: Not for you is the decision; whether He turns in mercy towards them or punishes them; verily they are the wrongdoers (3:128)."

حَدَّثَنَا أَحْمَدُ بْنُ مَنِيعٍ، وَعَبْدُ بْنُ حُمَيْدٍ، قَالاَ حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ، أَخْبَرَنَا حُمَيْدٌ، عَنْ أَنَسٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم شُجَّ فِي وَجْهِهِ وَكُسِرَتْ رَبَاعِيَتُهُ وَرُمِيَ رَمْيَةً عَلَى كَتِفِهِ فَجَعَلَ الدَّمُ يَسِيلُ عَلَى وَجْهِهِ وَهُوَ يَمْسَحُهُ وَيَقُولُ ‏"‏ كَيْفَ تُفْلِحُ أُمَّةٌ فَعَلُوا هَذَا بِنَبِيِّهِمْ وَهُوَ يَدْعُوهُمْ إِلَى اللَّهِ ‏"‏ ‏.‏ فَأَنْزَلَ اللَّهُ تَعَالَى ‏:‏ ‏(‏لَيْسَ لَكَ مِنَ الأَمْرِ شَيْءٌ أَوْ يَتُوبَ عَلَيْهِمْ أَوْ يُعَذِّبَهُمْ فَإِنَّهُمْ ظَالِمُونَ ‏)‏ ‏.‏ سَمِعْتُ عَبْدَ بْنَ حُمَيْدٍ يَقُولُ غَلِطَ يَزِيدُ بْنُ هَارُونَ فِي هَذَا ‏.‏ قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ ‏.‏

sunnah.com