Riyad as-Salihin, Book 18, Hadith 1661 (In-Book)

Umm 'Atiyyah (May Allah be pleased with her) said: At the time of giving the pledge of allegiance, the Messenger of Allah took from us an oath that we would not wail.[Al-Bukhari and Muslim].

وعن أم عطية نَُسيبة -بضم النون وفتحها- رضي الله عنها قالت ‏:‏ أخذ علينا رسول الله صلى الله عليه وسلم عند البيعة أن لا ننوح‏.‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏

sunnah.com