It is narrated from Sayyiduna Zayd bin Khalid al-Juhani (may Allah be pleased with him); he said: A man cursed a rooster that crowed in the presence of the Messenger of Allah (peace and blessings be upon him), and he (peace and blessings be upon him) said: "Do not curse it, for it calls to the prayer."
Hadith Referenceالمعجم الكبير للطبراني / باب الزاي / 5189