Riyad as-Salihin, Book 18, Hadith 1804 (In-Book)

Yazid bin Sharik bin Tariq (May Allah be pleased with him) said: I saw 'Ali (May Allah be pleased with him) giving a Khutbah (sermon) from the pulpit and I heard him saying: "By Allah, we have no book to read except Allah's Book and what is written in this scroll. He unrolled the scroll which showed a list of what sort of camels to be given as blood-money, and other legal matters relating to killing game in the sanctuary of Makkah and the expiation thereof. In it was also written: The Messenger of Allah said: 'Al-Madinah is a sanctuary from 'Air to Thaur (mountains). He who innovates in this territory new ideas in Islam, commits a sin therein, or shelters the innovators, will incur the Curse of Allah, the angels, and all the people, and Allah will accept from him neither repentance nor a ransom on the Day of Resurrection. The asylum (pledge of protection) granted by any Muslim (even of the) lowest status is to be honoured and respected by all other Muslims, and whoever betrays a Muslim in this respect (by violating the pledge) will incur the Curse of Allah, the angels, and all the people; and Allah will accept from him neither repentance nor a ransom on the Day of Resurrection. Whoever attributes his fatherhood to someone other than his (real) father, and takes someone else as his master other than his (real) master without his permission, will incur the Curse of Allah, the angels and all the people, and Allah will accept from him neither repentance nor a ransom on the Day of Resurrection."[Al-Bukhari and Muslim].

وعن يزيد بن شريك بن طارق قال‏:‏ رأيت عليا رضي الله عنه على المنبر يخطب، فسمعته يقول‏:‏ لا والله ما عندنا من كتاب نقرؤه إلا كتاب الله، وما في هذه الصحيفة، فنشرها فإذا فيها أسنان الإبل، وأشياء من الجراحات، وفيها‏:‏ قال رسول الله صلى الله عليه وسلم ‏:‏ ‏ "‏المدينة حرم ما بين عير إلى ثور، فمن أحدث فيها حدثاً، أو آوى محدثاً، فعليه لعنة الله والملائكة والناس أجمعين، لا يقبل الله منه يوم القيامة صرفاً ولا عدلاً، ذمة المسلمين واحدة، يسعى بها أدناهم، فمن أخفر مسلماً، فعليه لعنة الله والملائكة والناس أجمعين، لا يقبل الله منه يوم القيامة صرفاً ولا عدلاً، ومن ادعى إلى غير أبيه، أو انتمى إلى غير مواليه، فعليه لعنة الله والملائكة والناس أجمعين، لا يقبل الله منه يوم القيامة صرفاً ولا عدلاً‏" ‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏

sunnah.com