Someone said to Ali bin Abu Talib , "Tell us of something the Messenger of Allah ﷺ confided to you privately."He replied, "The Messenger of Allah ﷺ never confided anything to me that he kept hidden from the people. But I heard him say, 'Allah curses anyone who insults his parents, Allah curses anyone who alters the boundary markers of the land, and Allah curses anyone who shelters a criminal innovator.'"
حدثنا عبد الله حدثني أبو الشعثاء علي بن الحسن بن سليمان حدثنا سليمان بن حيان عن منصور بن حيان قال سمعت
قيل لعلي بن أبي طالب رضي الله عنه أخبرنا بشيء أسر إليك رسول الله ﷺ فقال ما أسر إلي رسول الله ﷺ شيئا وكتمه الناس ولكنه سمعته يقول لعن الله من سب والديه ولعن الله من غير تخوم الأرض ولعن الله من آوى محدثا
Its chain of transmission is sahih. Ali bin Hasan bin Sulayman, whose kunya is Abu Husayn, was known as Abu Shatha, and he is trustworthy. Amir bin Wathila is Abu Tufayl. The hadith is an abridgment of 855, and it is among the additions of Abdullah bin Ahmad.