Sayyiduna Abu Barzah al-Aslami (may Allah be pleased with him) says that a slave girl was riding a mount or a camel carrying some of the people's baggage, between two mountains. The narrow pass between the two mountains came, and the Messenger of Allah (peace and blessings be upon him) also arrived. When the slave girl saw him (peace and blessings be upon him), she was saying to her mount: 'Hal! Allahumma-l'anhu, hal! Allahumma-l'anhu' (Move on! O Allah, curse it. Move on! O Allah, curse it.) The Prophet (peace and blessings be upon him) said: "Who is the owner of this slave girl? Whose slave girl is she? Let no mount or camel upon which there is a curse accompany us," or as he (peace and blessings be upon him) said.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 10333