Sahih al-Bukhari, Book 30, Hadith 106 (Bukhari 1928)
Narrated `Aisha:
Allah's Messenger (ﷺ) ordered (the Muslims) to fast on the day of 'Ashura', and when fasting in the month of Ramadan was prescribed, it became optional for one to fast on that day ('Ashura') or not.