Hadithcore
Hadith #2118150

Abu Sirmah (RAA) narrated that the Messenger of Allah (ﷺ) said:

“He who causes harm to a Muslim will be harmed by Allah, and he who acts in a hostile manner against a Muslim, will be punished in the same way by Allah.” Related by Abu Dawud and At-Tirmidhi who graded it to be Hasan (good).

وَعَنْ أَبِي صِرْمَةَ ‏- رضى الله عنه ‏- قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ مَنْ ضَارَّ مُسْلِمًا ضَارَّهُ اَللَّهُ, وَمَنْ شَاقَّ مُسَلِّمًا شَقَّ اَللَّهُ عَلَيْهِ } أَخْرَجَهُ أَبُو دَاوُدَ وَاَلتِّرْمِذِيُّ وَحَسَّنَهُ.‏ [1]‏ .‏

References2 variants
Sunnah.com reference
Book 16, Hadith 65
Arabic/English book reference
Book 16, Hadith 1544