Amir bin Sa'd said: I entered a raised dwelling in Madinah in which Sayyiduna Qarazah bin Ka'b and Sayyiduna Abu Mas'ud al-Ansari (may Allah be pleased with them both) were present. They narrated a hadith in which they said: "And we have been permitted to weep at the time of calamity, provided it is not wailing."
Hadith Referenceالمعجم الكبير للطبراني / باب القاف / 16132