Abu Hurairah reported,

The Prophet ﷺ said, "Madinah is a sanctuary. Whoever commits a wrong in it or shelters a wrongdoer, upon him is the curse of Allah, the angels, and all people. On the Day of Resurrection, no compensation or ransom will be accepted from him."

Azami 10646

Sahih

عن أبي هريرة

أن النبي ﷺ قال: المدينة حرم، فمن أحدث فيها حدثا أو آوى محدثا فعليه لعنة الله والملائكة والناس أجمعين، لا يقبل منه يوم القيامة عدل ولا صرف.

الأعظمي 10646صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the lands
Chapter
Virtue of the Prophet's Madinah
Section
Sin of one who commits an offense in Madinah or shelters an offender
Numbering
Jami al-Kamil 10646 (2nd edition)
Azami 10646