Abu-Bakr Al-Hamdaani tells a story that followed the treaty of Hudaybiya, in his book الاعتبار في الناسخ والمنسوخ من الآثار, pages 172-173. In one narration, the terms of the treaty required that if any man
from the polytheists of Mecca flees to Medina, the Prophet (PBUH) will have to send him back. But another narration says "if any one
Thus, when Umm Kulthoom bint `Uqba did flee Mecca to Medina, her people asked the Prophet (PBUH) to return her to them, but he refused, because of
Scholars who supported the second narration of the Hudaybiya treaty terms, see this action as a contradiction to the treaty and, therefore, it means to them that the Quran abrogated that agreement. These scholars have said that no treaty shall include terms that are contradictory to the teachings of the religion and such term shall therefore be void. Their opinion is supported, Al-Hamdaani suggests, by an authentic hadeeth, reported by Al-Bukhaari, in which the Prophet (PBUH) said, "Any condition not in the Book of God is void."
Commenting on that, Al-Hamdaani says that it goes to show that the Prophet (PBUH) did make mistakes but it was not allowed to let the mistakes pass.
On the other hand, those who support the first narration of the treaty terms see the action of the Prophet (PBUH) not in violation of the treaty at all and complying with the Quran.
Al-Hamdaani mentioned that the first narration, specifying men, was reported and rated authentic by Al-Bukhaari. Al-Hamdaani did not authenticate the second narration.