The Messenger of Allah ﷺ said, "Whoever introduces into this affair of ours something that is not part of it, it is rejected."
حدثنا أبو مروان محمد بن عثمان العثماني حدثنا إبراهيم بن سعد بن إبراهيم بن عبد الرحمن بن عوف عن أبيه عن القاسم بن محمد
أن رسول الله ﷺ قال من أحدث في أمرنا هذا ما ليس منه فهو رد
Bukhari narrated it in Sulh, chapter "If They Settle on an Unjust Settlement, the Settlement is Rejected," no. 2697, and Muslim in Aqdiyah, chapter "The Nullification of Invalid Rulings... etc.," no. 1718, from the hadith of Ibrahim bin Saad, through him.