It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that a man was riding a camel with the Messenger of Allah (peace and blessings be upon him) when he cursed his camel. So he (peace and blessings be upon him) said: "O servant of Allah, do not travel with us on a camel that has been cursed."
This narration has a supporting (shahid) hadith in the Sahih (of Muslim) from the narration of Sayyiduna Imran bin Husayn (may Allah be pleased with him) and Sayyiduna Abu Barzah (may Allah be pleased with him).