Bulugh al-Maram, Book 16, Hadith 1544 (English)

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).

وَعَنْ أَبِي صِرْمَةَ ‏- رضى الله عنه ‏- قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ مَنْ ضَارَّ مُسْلِمًا ضَارَّهُ اَللَّهُ, وَمَنْ شَاقَّ مُسَلِّمًا شَقَّ اَللَّهُ عَلَيْهِ } أَخْرَجَهُ أَبُو دَاوُدَ وَاَلتِّرْمِذِيُّ وَحَسَّنَهُ.‏ (1964)‏.‏ ‏3 ‏- حسن.‏ رواه أبو داود (3635)‏، والترمذي (1940)‏، وليس عندهما لفظ" مسلما".‏

sunnah.com

also referenced under: Book 16, Hadith 1501 (In-Book)