(24) باب النَّهْىِ عَنْ لَعْنِ الدَّوَابِّ، وَغَيْرِهَا،
Abu Burza al-Aslami reported that a slave-girl was riding a dromedary and there was also the luggage of people upon it. that she suddenly saw Allah's Apostle (ﷺ). The way of the mountain was narrow and she said (to that dromedary):
Go ahead (but that dromedary did not move). She (that slave-girl), out of anger, said: O Allah, let that (dromedary) be damned. Thereupon Allah's Apostle (ﷺ) said: Let the dromedary on which the curse has been invoked not proceed with us.
Reference: Sahih Muslim 2596 a
In-book reference: Book 45, Hadith 104
USC-MSA web (English) reference(deprecated numbering scheme): Book 32, Hadith 6278