Sunan an-Nasa'i 4422
It was narrated that 'Amir bin Wathilah said:
"A man asked 'Ali" Did the Messenger of Allah used to tell you anything in secret that he did not tell the people?' Ali got so angry that his face turned red, and he said: 'He used not to tell me anything in secret that he di8d not tell the people except that he told me four things when he and I were alone in the house. He said: Allah curses the alone who curses his father, Allah curses the one who offers a sacrifice to anyone other than Allah, Allah curse the one who gives refuge to an offender and Allah curses the one who changes boundary markers."" (Sahih )
أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا يَحْيَى، - وَهُوَ ابْنُ زَكَرِيَّا بْنِ أَبِي زَائِدَةَ - عَنِ ابْنِ حَيَّانَ، - يَعْنِي مَنْصُورًا - عَنْ عَامِرِ بْنِ وَاثِلَةَ، قَالَ سَأَلَ رَجُلٌ عَلِيًّا هَلْ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يُسِرُّ إِلَيْكَ بِشَىْءٍ دُونَ النَّاسِ فَغَضِبَ عَلِيٌّ حَتَّى احْمَرَّ وَجْهُهُ وَقَالَ مَا كَانَ يُسِرُّ إِلَىَّ شَيْئًا دُونَ النَّاسِ غَيْرَ أَنَّهُ حَدَّثَنِي بِأَرْبَعِ كَلِمَاتٍ وَأَنَا وَهُوَ فِي الْبَيْتِ فَقَالَ ‏
"‏ لَعَنَ اللَّهُ مَنْ لَعَنَ وَالِدَهُ وَلَعَنَ اللَّهُ مَنْ ذَبَحَ لِغَيْرِ اللَّهِ وَلَعَنَ اللَّهُ مَنْ آوَى مُحْدِثًا وَلَعَنَ اللَّهُ مَنْ غَيَّرَ مَنَارَ الأَرْضِ ‏"‏ ‏.‏