Sahih al-Bukhari, Book 53, Hadith 7 (Bukhari 2588)

Narrated Aisha:

Allah's Messenger (ﷺ) said, "If somebody innovates something which is not in harmony with the principles of our religion, that thing is rejected."