(17) The Book of the Prohibited actions
كتاب الأمور المنهي عنها
(302) Chapter: Prohibition of Bewailing the Deceased
(302) - باب تحريم النياحة على الميت ولطم الخد وشق الجيب ونتف الشعر وحلقه، والدعاء بالويل والثبور
Riyad as-Salihin 1658 
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].

وعن ابن مسعود رضي الله عنه قال‏:‏ قال رسول الله صلى الله عليه وسلم ‏:‏‏ "‏ليس منا من ضرب الخدود، وشق الجيوب، ودعا بدعوى الجاهليه‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 1658
In-book reference : Book 17, Hadith 148