Ibn Mas'ud (May Allah be pleased with him) said:
The Messenger of Allah (ﷺ) said, "He who (on befalling a calamity) slaps his cheeks, tears his clothes and follows the ways and traditions of the Days of Ignorance is none of us."[Al-Bukhari and Muslim]. (JA)
App reference (JA): Book 18, Hadith 148 (JA)
Arabic/English book reference (JA): Book 18, Hadith 1658 (JA)