The Messenger of Allah ﷺ said, "He is not one of us who strikes his cheeks, tears his garments, and cries out with the cries of the days of ignorance."The wording is that of Ali. Hasan said, "with the call of."
أخبرنا علي بن خشرم قال حدثنا عيسى عن الأعمش ح أنبأنا الحسن بن إسمعيل قال حدثنا ابن إدريس عن الأعمش عن عبد الله بن مرة عن مسروق
قال رسول الله ﷺ ليس منا من ضرب الخدود وشق الجيوب ودعا بدعاء الجاهلية واللفظ لعلي وقال الحسن بدعوى
Muslim narrated it in the Book of Faith, chapter "The prohibition of striking the cheeks, tearing the garments, and calling out with the calls of the Jahiliyyah," hadith no. 166/103, from Ali bin Khashram, and Bukhari narrated it in the Book of Funerals, chapter "He is not one of us who strikes the cheeks," hadith no. 1297, from the hadith of Amash with the same chain, and it is also in Kubra, hadith no. 1987.