Asim reported,

I asked Anas bin Malik, "Did the Messenger of Allah ﷺ declare Madinah a sanctuary?"He replied, "Yes, the area between such-and-such and such-and-such. Whoever introduces an innovation in it..." Then he said to me, "This is severe. Whoever introduces an innovation in it, upon him is the curse of Allah, the angels, and all people. Allah will not accept from him on the Day of Resurrection any obligatory or voluntary act of worship."The son of Anas added, "Or shelters an innovator."

Muslim 3323

Sahih

و حدثناه حامد بن عمر حدثنا عبد الواحد حدثنا

عاصم قال

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

مسلم 3323صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Hajj
Chapter
Virtue of Madinah, the supplication of the Prophet ﷺ for blessings in it, the declaration of its sanctity, the prohibition of its game and trees, and the boundaries of its sacred precinct
Numbering
Darussalam 3323
Muslim 3323