Jabir bin Abdullah reported,

The Prophet ﷺ took Abdul-Rahman bin Awf by the hand and went with him to his son Ibrahim, finding him at the point of death. The Prophet ﷺ took him and placed him in his lap, and he wept.Abdul-Rahman said to him, "Are you weeping? Did you not forbid weeping?"He replied, "No, but I forbade two foolish and sinful sounds, a voice raised at the time of calamity with scratching of faces and tearing of garments, and the wailing cry of Satan."The hadith contains more words than this.

Tirmidhi 1005

Hasan

حدثنا علي بن خشرم أخبرنا عيسى بن يونس عن ابن أبي ليلى عن عطاء

عن جابر بن عبد الله قال

أخذ النبي ﷺ بيد عبد الرحمن بن عوف فانطلق به إلى ابنه إبراهيم فوجده يجود بنفسه فأخذه النبي ﷺ فوضعه في حجره فبكى فقال له عبد الرحمن أتبكي أولم تكن نهيت عن البكاء قال لا ولكن نهيت عن صوتين أحمقين فاجرين صوت عند مصيبة خمش وجوه وشق جيوب ورنة شيطان وفي الحديث كلام أكثر من هذا

الترمذي 1005حسن
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Funerals
Chapter
Permission to weep over the deceased
Numbering
Darussalam 1005
Tirmidhi 1005