Hadithcore
Riyad as-Salihin, 1577

Wathilah bin Al-Asqa' (May Allah be pleased with him) said:

The Messenger of Allah (ﷺ) said, "Do not express pleasure at the misfortune of a (Muslim) brother lest Allah should bestow mercy upon him and make you suffer from a misfortune." <b>[At- Tirmidhi]</b>.

وعن واثلة بن الأسقع رضي الله عنه قال‏:‏ قال رسول الله صلى الله عليه وسلم ‏:‏ ‏"‏ لا تظهر الشماتة لأخيك، فيرحمه الله ويبتليك‏"‏‏.‏ ‏(‏‏(‏رواه الترمذي وقال‏:‏ حديث حسن‏)‏‏)‏ وفي الباب حديث أبي هريرة السابق في باب التجسس‏:‏ ‏"‏ كل المسلم على المسلم حرام‏"‏ الحديث‏.‏

References1 variant
In-Book Reference
Book 17, Hadith 67
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) It is recommended that Muslims be merciful to one another and show sympathy to one another when afflictions strike.<br> 2) Gloating at fellow Muslims helps the devil against them and makes them despair of Allah’s mercy.