Musnad Ahmad 1037
Grading supplied with this record: Sahih, al-Bukhari (1870) and Muslim (1370)]
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
It was narrated that ‘Ali (رضي الله عنه) said:
We have nothing except the Book of Allah, may He be exalted, and this document from the Prophet (ﷺ). Madinah is a sanctuary from "A"ir to Thawr; whoever commits an offence in it or gives refuge to an offender, may the curse of Allah, the angels and all the people be upon him and no obligatory or nafl act of worship will be accepted from him." And he said: "Protection given by any Muslim is binding upon all of them. Whoever transgresses protection given by a Muslim, upon him be the curse of Allah, the angels and all the people, and Allah will not accept from him any nafl or obligatory act of worship. Whoever takes people as mawla without the permission of the ones who set him free, upon him be the curse of Allah, the angels and all the people, and Allah will not accept from him any nafl or obligatory act of worship.”
Full reference and source
Musnad Ahmad 1037 Arabic/English book : Book 5, Hadith 1037
View source on Sunnah.com (opens in a new tab)