We marched with the Messenger of Allah ﷺ on the expedition of Batn Buwat, while he was pursuing Majdi bin Amr al-Juhani. The water-carrying camel was shared in turns among five, six, or seven of us.When the turn of a man from the Ansar came to ride his camel, he made it kneel, mounted it, and then urged it to rise, but it was somewhat slow to obey. He said to it, "Move on, may Allah curse you!"The Messenger of Allah ﷺ said, "Who is this man cursing his camel?"The man replied, "It is I, Messenger of Allah."He said, "Get down from it, and do not accompany us with one who is cursed. Do not invoke curses upon yourselves, nor upon your children, nor upon your possessions. You may strike a moment when Allah is asked for a gift and grants it, so that your prayer is answered against you."
سرنا مع رسول الله ﷺ غزوة بطن بواط، وهو يطلب المجدي بن عمرو الجهني، وكان الناضح يعقبه منا الخمسة والستة والسبعة، فدارت عقبة رجل من الأنصار على ناضح له، فأناخه، فركبه، ثم بعثه، فتلدن عليه بعض التلدن، فقال له: شأ لعنك الله، فقال رسول الله ﷺ: من هذا اللاعن بعيره؟ قال: أنا يا رسول الله، فلا تصحبنا بملعون، لا تدعوا على أنفسكم، ولا تدعوا على أولادكم، ولا تدعوا على أموالكم، لا توافقوا من الله ساعة يسأل فيها عطاء فيستجيب لكم.
Muslim narrated it in Zuhd wal-Raqaiq (3009), through multiple routes, from Hatim bin Ismail, from Yaqub bin Mujahid Abu Hazra, from Ubada bin Walid bin Ubada bin Samit, from his father, from Jabir, and he related the hadith.