Musnad Ahmad 1037
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.”
حَدَّثَنَا عَبْدُ الرَّحْمَنِ، عَنْ سُفْيَانَ، عَنِ الْأَعْمَشِ، عَنْ إِبْرَاهِيمَ التَّيْمِيِّ، عَنْ أَبِيهِ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ قَالَ مَا عِنْدَنَا شَيْءٌ إِلَّا كِتَابَ اللَّهِ تَعَالَى وَهَذِهِ الصَّحِيفَةَ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الْمَدِينَةُ حَرَامٌ مَا بَيْنَ عَائِرٍ إِلَى ثَوْرٍ مَنْ أَحْدَثَ فِيهَا حَدَثًا أَوْ آوَى مُحْدِثًا فَعَلَيْهِ لَعْنَةُ اللَّهِ وَالْمَلَائِكَةِ وَالنَّاسِ أَجْمَعِينَ لَا يُقْبَلُ مِنْهُ عَدْلٌ وَلَا صَرْفٌ وَقَالَ ذِمَّةُ الْمُسْلِمِينَ وَاحِدَةٌ فَمَنْ أَخْفَرَ مُسْلِمًا فَعَلَيْهِ لَعْنَةُ اللَّهِ وَالْمَلَائِكَةِ وَالنَّاسِ أَجْمَعِينَ لَا يُقْبَلُ مِنْهُ صَرْفٌ وَلَا عَدْلٌ وَمَنْ تَوَلَّى قَوْمًا بِغَيْرِ إِذْنِ مَوَالِيهِ فَعَلَيْهِ لَعْنَةُ اللَّهِ وَالْمَلَائِكَةِ وَالنَّاسِ أَجْمَعِينَ لَا يَقْبَلُ اللَّهُ مِنْهُ صَرْفًا وَلَا عَدْلًا‏.‏