Ali bin Abu Talib reported,

Whoever claims that we possess anything we recite besides the Book of Allah and this scroll, a scroll containing rules about the ages of camels and matters concerning injuries, has spoken falsely.He also said that it contains the following statement of the Messenger of Allah ﷺ, "Madinah is sacred territory between Ayr and Thawr. Whoever introduces a heretical innovation into it, or shelters someone who does so, upon him is the curse of Allah, the angels, and all people. Allah will accept from him no obligatory or voluntary act on the Day of Resurrection. Whoever claims descent from someone other than his father, or attaches himself as a client to people other than his rightful patrons, upon him is the curse of Allah, the angels, and all people. No obligatory or voluntary act will be accepted from him. The protection granted by the Muslims is one, extended even by the lowest among them."

Tirmidhi 2127

Sahih

حدثنا هناد حدثنا أبو معاوية عن الأعمش عن إبراهيم التيمي عن أبيه قال خطبنا

علي فقال

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

الترمذي 2127صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Patronage and gifts
Chapter
One who affiliates with other than his patrons or claims descent from other than his father
Numbering
Darussalam 2127
Tirmidhi 2127