Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "Two sounds are cursed in this world and the Hereafter: the sound of a wind instrument at a time of blessing, and the sound of wailing at a time of calamity."
Al-Bazzar recorded it, and its narrators are thiqat (trustworthy).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الجنائز / 4017