God's Prophet (a.s) said: “Expressing condolence is a cause of entering Heaven.”
وقال رسول الله (صلى الله عليه وآله): التعزية تورث الجنة.
Similar narrations
Man Lā Yaḥḍuruh al-Faqīh #507Hadith.507 - The Messenger of Allah (sw) said: "Offering condolences leads to Paradise."
Thawāb al-Aʿmāl wa ʿiqāb al-Aʿmāl #7641. Imam Ja’far Sadiq (a.s.) narrates from his ancestors that the Holy Prophet (s.a.w.s.) said, “Saying words of condolence is...