A Muslim woman was taken captive by the enemy. Before that, the enemy had captured a she-camel belonging to the Messenger of Allah ﷺ. She saw that the people had become inattentive, so she mounted the she-camel of the Messenger of Allah ﷺ and made a vow that if she escaped on it, she would slaughter it.When she reached Medina, she wanted to slaughter the she-camel of the Messenger of Allah ﷺ, but she was prevented from doing so. The matter was mentioned to the Messenger of Allah ﷺ, and he said, "What a poor reward you have given it for saving you."Then he said, "There is no vow binding upon the son of Adam concerning what he does not own, nor in disobedience to Allah ."
حدثنا هشيم أخبرنا منصور عن الحسن
أن امرأة من المسلمين أسرها العدو وقد كانوا أصابوا قبل ذلك ناقة لرسول الله ﷺ قال فرأت من القوم غفلة قال فركبت ناقة رسول الله ﷺ ثم جعلت عليها أن تنحرها قال فقدمت المدينة فأرادت أن تنحر ناقة رسول الله ﷺ فمنعت من ذلك فذكر ذلك لرسول الله ﷺ فقال بئسما جزيتيها قال ثم قال لا نذر لابن آدم فيما لا يملك ولا في معصية الله تبارك وتعالى
Its isnad is sahih, and it is found in Muslim 3/1262, no. 1641, in the chapter on vows, "There is no fulfillment for a vow to commit disobedience," and in Abu Dawud 3/239, no. 2316, and Darimi 2/308, no. 2505, both like Muslim.