Hadithcore
Riyad as-Salihin, 1558

Abu Barzah Nadlah bin 'Ubaid Al-Aslami (May Allah be pleased with him) said:

A young woman was riding a she-camel on which there was the luggage of people. Suddenly she saw the Prophet (ﷺ). The pass of the mountain became narrow for her people (because of fear). The young woman said to the she-camel: "Go ahead." When it did not move, she said, "O Allah! Curse it." The Prophet (ﷺ) said, "The she-camel that has been cursed should not accompany us." <b>[Muslim]</b>.

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

‏لا تصاحبنا ناقة عليها لعنة‏

‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏. ‏قوله: حل بفتح الحاء المهملة، وإسكان اللام وهي كلمة لزجر الإبل واعلم أن هذا الحديث قد يستشكل معناه ولا إشكال فيه بل المراد النهي أن تصاحبهم تلك الناقة وليس فيه نهي عن بيعها وذبحها وركوبها في غير صحبة النبي صلى الله عليه وسلم بل كل ذلك وما سواه من التصرفات جائز لا منع منه إلا من مصاحبته صلى الله عليه وسلم بها لأن هذه التصرفات كلها كانت جائزة فمنع بعض منها فبقي الباقي على ما كان والله أعلم

References1 variant
In-Book Reference
Book 17, Hadith 48
Sharh · explanationclick to expand
<b>Guidance from the Hadiths:</b><br> 1) It is forbidden to curse animals because they do not deserve to be cursed, and because cursing it is a form of injustice.<br> 2) The Companions (may Allah be pleased with them) honored the command of the Prophet (may Allah’s peace and blessings be upon him) and hastened to obey his commands and avoid what he forbade. Obedience to the Messenger of Allah (may Allah’s peace and blessings be upon him) is the duty of the whole Muslim nation and the key to its prosperity. Allah Almighty says: {If you obey him, you will be guided}<br> <br> <b>Benefit:</b><br> The Prophet (may Allah’s peace and blessings be upon him) forbade accompanying a cursed riding animal, and his command to leave it is a punishment for the woman who cursed it; and it did not deserve to be cursed. This indicates that the Shariah guards all the rights even those of animals. Thus, when someone transgresses with regard to rights, he deserves a suitable punishment.