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]. (AR)
App reference (AR): Book 18, Hadith 151 (AR)
Arabic/English book reference (AR): Book 18, Hadith 1661 (AR)