Sahih al-Bukhari 1592
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ شَاءَ أَنْ يَصُومَهُ فَلْيَصُمْهُ، وَمَنْ شَاءَ أَنْ يَتْرُكَهُ فَلْيَتْرُكْهُ "
Narrated `Aisha:
The people used to fast on 'Ashura (the tenth day of the month of Muharram) before the fasting of Ramadan was made obligatory. And on that day the Ka`ba used to be covered with a cover. When Allah made the fasting of the month of Ramadan compulsory, Allah's Messenger (ﷺ) said, "Whoever wishes to fast (on the day of 'Ashura') may do so; and whoever wishes to leave it can do so."
Full reference and source
Sahih al-Bukhari 1592 In-book : Book 25, Hadith 78 USC-MSA web (English) : Vol. 2, Book 26, Hadith 662 (deprecated)
View source on Sunnah.com (opens in a new tab)