Anas bin Malik reported,

The Messenger of Allah ﷺ said, "Madinah is sacred from such-and-such to such-and-such. 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 worship nor voluntary."Hammad said that Humayd added in his version, "No weapon is to be carried in it for fighting."

Ahmad 13540

Sahih

حدثنا مؤمل حدثنا حماد عن حميد وعاصم الأحول

عن أنس

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

أحمد 13540صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Anas bin Malik
Numbering
Darussalam 13540
Ahmad 13540