Abu Tufayl reported,

We said to Ali bin Abu Talib, "Tell us something that the Messenger of Allah ﷺ confided to you in private."He replied, "He did not confide anything to me that he kept hidden from people, but I heard him say, 'Allah curses whoever sacrifices to anything other than Allah. Allah curses whoever shelters a criminal. Allah curses whoever curses his parents. And Allah curses whoever alters the boundary markers.'"

Muslim 5125

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا أبو خالد الأحمر سليمان بن حيان عن منصور بن حيان

عن أبي الطفيل قال

قلنا لعلي بن أبي طالب أخبرنا بشيء أسره إليك رسول الله ﷺ فقال ما أسر إلي شيئا كتمه الناس ولكني سمعته يقول لعن الله من ذبح لغير الله ولعن الله من آوى محدثا ولعن الله من لعن والديه ولعن الله من غير المنار

مسلم 5125صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Sacrificial animals
Chapter
Prohibition of slaughtering for other than Allah and cursing the one who does so
Numbering
Darussalam 5125
Muslim 5125