Wailing over the death of a child and others is forbidden
◈ عن أبى هريرة قال: قال رسول الله: اثنتان فى الناس هما بهم كفر الطعن فى النسب والنياحة على الميت.
“Abu Hurayrah (may Allah be pleased with him) narrates that the Messenger of Allah ﷺ said: ‘Two acts of disbelief are found among the people: slandering lineage and wailing over the dead.'”
◈ أن النبى صلى الله عليه وسلم قال: أربع فى أمتي من أمر الجاهلية لا يتركونهن الفخر فى الأحساب والطعن فى الأنساب والإستسقاء بالنجوم والنياحة
The Messenger of Allah ﷺ said: “Four matters from the time of Jahiliyyah will remain in my Ummah; they will not abandon them: boasting about lineage, slandering family lineages, seeking rain through the stars, and wailing.”