Jabir bin Abdullah reported,

We marched with the Messenger of Allah ﷺ on the expedition of Batn Buwat, while he was searching for Majdi bin Amr al-Juhani. The water-carrying camel was being shared among five, six, or seven of us, each taking turns to ride it.The turn of one of the Ansar came to ride his camel. He made it kneel and mounted it, then urged it on, but it was a bit slow to respond. So he said to it, "Move on, may Allah curse you."The Messenger of Allah ﷺ asked, "Who is this cursing his camel?"The man replied, "It is I, Messenger of Allah."He said, "Get down from it. Do not accompany us with something cursed. Do not invoke curses against yourselves, nor against your children, nor against your wealth. You may strike upon an hour with Allah in which gifts are being granted, and your prayer would be answered against you."

Azami 14811

Sahih

عن جابر بن عبد الله قال

سرنا مع رسول الله ﷺ في غزوة بطن بواط، وهو يطلب المجدي بن عمرو الجهني، وكان الناضح يعتقبه منا الخمسة والستة والسبعة، فدارت عقبة رجل من الأنصار على ناضح له، فأناخه فركبه، ثم بعثه فتلدن عليه بعض التلدن، فقال له: شأ، لعنك الله، فقال رسول الله ﷺ: من هذا اللاعن بعيره؟ قال: أنا، يا رسول الله قال: انزل عنه، فلا تصحبنا بملعون، لا تدعوا على أنفسكم، ولا تدعوا على أولادكم، ولا تدعوا على أموالكم، لا توافقوا من الله ساعة يسأل فيها عطاء، فيستجيب لكم.

الأعظمي 14811صحيح
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 14811 (2nd edition)
Azami 14811