Sunan Abi Dawud, Hadith 2029

‘Ali said “We wrote down nothing on the authority of the Apostle of Allaah but the Qur’an and what this document contains.”. He reported the Apostle of Allaah as saying “ Madeenah is sacred from A’ir to Thawr so if anyone produces an innovation (in it) or gives protection to an innovator the curse of Allaah, angels and all men will fall upon him and no repentance or ransom will be accepted from him. The protection granted by Muslim is one (even if) the humblest of them grants it. So if anyone breaks a covenant made by a Muslim the curse of Allaah, angels and all men will fall upon him and no repentance or ransom will be accepted from him. If anyone attributes his manumission to people without the permission of his masters the curse of Allaah, angels and all men will fall upon him and no repentance or ransom will be accepted from him.

حَدَّثَنَا مُحَمَّدُ بْنُ كَثِيرٍ، أَخْبَرَنَا سُفْيَانُ، عَنِ الأَعْمَشِ، عَنْ إِبْرَاهِيمَ التَّيْمِيِّ، عَنْ أَبِيهِ، عَنْ عَلِيٍّ، - رضى الله عنه - قَالَ مَا كَتَبْنَا عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم إِلاَّ الْقُرْآنَ وَمَا فِي هَذِهِ الصَّحِيفَةِ ‏.‏ قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ الْمَدِينَةُ حَرَامٌ مَا بَيْنَ عَائِرٍ إِلَى ثَوْرٍ فَمَنْ أَحْدَثَ حَدَثًا أَوْ آوَى مُحْدِثًا فَعَلَيْهِ لَعْنَةُ اللَّهِ وَالْمَلاَئِكَةِ وَالنَّاسِ أَجْمَعِينَ لاَ يُقْبَلُ مِنْهُ عَدْلٌ وَلاَ صَرْفٌ وَذِمَّةُ الْمُسْلِمِينَ وَاحِدَةٌ يَسْعَى بِهَا أَدْنَاهُمْ فَمَنْ أَخْفَرَ مُسْلِمًا فَعَلَيْهِ لَعْنَةُ اللَّهِ وَالْمَلاَئِكَةِ وَالنَّاسِ أَجْمَعِينَ لاَ يُقْبَلُ مِنْهُ عَدْلٌ وَلاَ صَرْفٌ وَمَنْ وَالَى قَوْمًا بِغَيْرِ إِذْنِ مَوَالِيهِ فَعَلَيْهِ لَعْنَةُ اللَّهِ وَالْمَلاَئِكَةِ وَالنَّاسِ أَجْمَعِينَ لاَ يُقْبَلُ مِنْهُ عَدْلٌ وَلاَ صَرْفٌ ‏" ‏ ‏.‏

sunnah.com

also referenced under: Hadith 2034 (DarusSalam)