كتاب الأضاحى
35  
The Book of Sacrifices
(8)
Chapter: The prohibition of slaughtering a sacrifice for anything other than Allah, and the one who does that is cursed
(8)
باب تَحْرِيمِ الذَّبْحِ لِغَيْرِ اللَّهِ تَعَالَى وَلَعْنِ فَاعِلِهِ ‏‏
Sahih Muslim 1978 a

Abu Tufail 'Amir b. Withila reported:

I was in the company of 'Ali b. Abi Talib, when a person came to him, and said: What was it that Allah's Apostle (ﷺ) told you in secret? Thereupon he (liadrat 'All) was enraged and said: Allah's Apostle (ﷺ) did not tell me anything in secret that he hid from people, except that he told me four things. He said: Com- mader of Faithful, what are these? He said: Allah cursed him who cursed his father; Allah cursed him who sacrificed for anyone besides Allah; and Allah cursed him who accommodates an innovator (in religion) ; and Allah cursed him who changed the minarets (the boundary lines) of the land.
حَدَّثَنَا زُهَيْرُ بْنُ حَرْبٍ، وَسُرَيْجُ بْنُ يُونُسَ، كِلاَهُمَا عَنْ مَرْوَانَ، قَالَ زُهَيْرٌ حَدَّثَنَا مَرْوَانُ بْنُ مُعَاوِيَةَ الْفَزَارِيُّ، حَدَّثَنَا مَنْصُورُ بْنُ حَيَّانَ، حَدَّثَنَا أَبُو الطُّفَيْلِ، عَامِرُ بْنُ وَاثِلَةَ قَالَ كُنْتُ عِنْدَ عَلِيِّ بْنِ أَبِي طَالِبٍ فَأَتَاهُ رَجُلٌ فَقَالَ مَا كَانَ النَّبِيُّ صلى الله عليه وسلم يُسِرُّ إِلَيْكَ قَالَ فَغَضِبَ وَقَالَ مَا كَانَ النَّبِيُّ صلى الله عليه وسلم يُسِرُّ إِلَىَّ شَيْئًا يَكْتُمُهُ النَّاسَ غَيْرَ أَنَّهُ قَدْ حَدَّثَنِي بِكَلِمَاتٍ أَرْبَعٍ ‏.‏ قَالَ فَقَالَ مَا هُنَّ يَا أَمِيرَ الْمُؤْمِنِينَ قَالَ قَالَ ‏ "‏ لَعَنَ اللَّهُ مَنْ لَعَنَ وَالِدَهُ وَلَعَنَ اللَّهُ مَنْ ذَبَحَ لِغَيْرِ اللَّهِ وَلَعَنَ اللَّهُ مَنْ آوَى مُحْدِثًا وَلَعَنَ اللَّهُ مَنْ غَيَّرَ مَنَارَ الأَرْضِ ‏"‏ ‏.‏
Reference : Sahih Muslim 1978a
In-book reference : Book 35, Hadith 60
USC-MSA web (English) reference : Book 22, Hadith 4876
  (deprecated numbering scheme)