Jami` at-Tirmidhi, Book 37, Hadith 92 (Tirmidhi 2576)

Wathilah bin Al-Asqa' narrated that the Messenger of Allah (s.a.w) said:

"Do not rejoice over the mishaps of your brother so that Allah has mercy on him and subjects you to trials."