From Sahih Muslim (Hadith 288):
It is narrated on the authority of Abu Burda that Abu Musa fell unconscious and his wife Umm Abdullah came there and wailed loudly. When he felt relief he said:Don't you know? -and narrated to her: Verily the Messenger of Allah (ﷺ) said: I have no concern with one who shaved her hair, lamented loudly and tore (her clothes in grief)
Reference: Muslim 288