Abu Barza reported,

While a young woman was riding a she-camel carrying some of the people's belongings, she caught sight of the Prophet ﷺ just as the mountain pass became narrow on them. She urged the camel forward, saying, "Move on! Allah, curse her!"The Prophet ﷺ said, "Let no she-camel that carries a curse upon it travel with us."In another wording, "No, by Allah, no mount that carries a curse from Allah upon it shall travel with us."

Azami 14810

Sahih

عن أبي برزة الأسلمي قال

بينما جارية على ناقة، عليها بعض متاع القوم، إذ بصرت بالنبي ﷺ، وتضايق بهم الجبل، فقالت: حل، اللهم العنها، قال: فقال النبي ﷺ: لا تصاحبنا ناقة عليها لعنة. وفي لفظ: لا أيم الله لا تصاحبنا راحلة عليها لعنة من الله.

الأعظمي 14810صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Kindness to animals
Section
Prohibition of cursing animals
Numbering
Jami al-Kamil 14810 (2nd edition)
Azami 14810