Ali bin Abu Talib reported,

Ali said, "We did not record anything from the Messenger of Allah ﷺ except the Quran and what is in this document."He said, the Messenger of Allah ﷺ said, "Madinah is a sanctuary from Air to Thawr. Whoever introduces an innovation in it or shelters one who does, upon him is the curse of Allah, the angels, and all people. No compensation or ransom will be accepted from him.The protection granted by the Muslims is one, and the lowest of them may extend it. Whoever betrays a Muslim's pledge of protection, upon him is the curse of Allah, the angels, and all people. No compensation or ransom will be accepted from him.Whoever claims allegiance to people other than his own masters without their permission, upon him is the curse of Allah, the angels, and all people. No compensation or ransom will be accepted from him."

Abu Dawud 2034

Sahih

حدثنا محمد بن كثير أخبرنا سفيان عن الأعمش عن إبراهيم التيمي عن أبيه

عن علي رضي الله عنه قال

ما كتبنا عن رسول الله ﷺ إلا القرآن وما في هذه الصحيفة قال قال رسول الله ﷺ المدينة حرام ما بين عائر إلى ثور فمن أحدث حدثا أو آوى محدثا فعليه لعنة الله والملائكة والناس أجمعين لا يقبل منه عدل ولا صرف وذمة المسلمين واحدة يسعى بها أدناهم فمن أخفر مسلما فعليه لعنة الله والملائكة والناس أجمعين لا يقبل منه عدل ولا صرف ومن والى قوما بغير إذن مواليه فعليه لعنة الله والملائكة والناس أجمعين لا يقبل منه عدل ولا صرف

أبو داود 2034صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Rites of pilgrimage
Chapter
Sanctity of Madinah
Numbering
Darussalam 2034
Abu Dawud 2034