It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "There are two sounds that are cursed (by Allah): the sound of a musical pipe (music) at a time of blessing and joy, and the sound of wailing (lamentation) at a time of calamity."