The Messenger of Allah ﷺ said, "Whoever performs an act that is not in accordance with our matter, it will be rejected."
حدثنا عبد الرحمن حدثنا عبد الله بن جعفر عن سعد بن إبراهيم سمع القاسم قال سمعت
قال رسول الله ﷺ من عمل عملا ليس عليه أمرنا فهو رد
Its isnad is sahih, mentioned previously at 25008.