Ali said, "Whoever claims that we possess anything we recite besides the Book of Allah and this document," referring to a document hanging from the sheath of his sword, "has lied. In it are rulings concerning the ages of camels used for blood-money and matters relating to wounds. It also contains the saying of the Prophet ﷺ, 'Madinah is sacred territory between the mountains of Ayr and Thawr. Whoever introduces an innovation in it or shelters one who does so, upon him is the curse of Allah, the angels, and all people. Allah will accept from him neither obligatory nor voluntary acts on the Day of Resurrection. The protection granted by the Muslims is one, even the lowliest of them may extend it. Whoever claims descent from someone other than his father or affiliates himself with people other than his patrons, upon him is the curse of Allah, the angels, and all people. Allah will accept from him neither obligatory nor voluntary acts on the Day of Resurrection.'"
من زعم أن عندنا شيئا نقرؤه إلا كتاب الله وهذه الصحيفة- قال وصحيفة معلقة في قراب سيفه- فقد كذب فيها أسنان الإبل وأشياء من الجراحات وفيها قال النبي ﷺ: المدينة حرم ما بين عير وثور فمن أحدث فيها حدثا أو آوى محدثا فعليه لعنة الله والملائكة والناس أجمعين لا يقبل الله منه يوم القيامة صرفا ولا عدلا وذمة المسلمين واحدة يسعى بها أدناهم، ومن ادعى إلى غير أبيه أو انتمى إلى غير مواليه فعليه لعنة الله والملائكة والناس أجمعين لا يقبل الله منه يوم القيامة صرفا ولا عدلا.
Bukhari narrated it in the book of holding fast to the Book and the Sunnah (7300), and Muslim in the book of Hajj (1370:467), both of them through Amash, who said, Ibrahim Taymi narrated to me, my father narrated to me, saying, Ali addressed us from a pulpit made of baked brick, and he said, then he mentioned it.The wording given here is Muslim's, and Bukhari added, "Whoever betrays the protection given to a Muslim, upon him is the curse of Allah, the angels, and all the people. Allah will accept from him neither ransom nor compensation." This addition was also related by Muslim (1370:468) through another route from Amash, with the same wording, and he added, "on the Day of Judgment."