Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:4502ʿAbdullāh b. Muḥammad > Ibn ʿUyaynah > al-Zuhrī > ʿUrwah > ʿĀʾishah

The people used to fast on the day of 'Ashura' before fasting in Ramadan was prescribed but when (the order of compulsory fasting in) Ramadan was revealed, it was up to one to fast on it (i.e. 'Ashura') or not.  

البخاري:٤٥٠٢حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدٍ حَدَّثَنَا ابْنُ عُيَيْنَةَ عَنِ الزُّهْرِيِّ عَنْ عُرْوَةَ

عَنْ عَائِشَةَ ؓ كَانَ عَاشُورَاءُ يُصَامُ قَبْلَ رَمَضَانَ فَلَمَّا نَزَلَ رَمَضَانُ قَالَ مَنْ شَاءَ صَامَ وَمَنْ شَاءَ أَفْطَرَ  


See similar narrations below:

Collected by Aḥmad
ahmad:26107ʿUthmān b. ʿUmar > Yūnus > al-Zuhrī > ʿUrwah > ʿĀʾishah

[Machine] That the Prophet ﷺ used to recommend fasting on the day of Ashura before the month of Ramadan was made obligatory. So when Ramadan was made obligatory, whoever wished fasted and whoever wished broke their fast.  

أحمد:٢٦١٠٧حَدَّثَنَا عُثْمَانُ بْنُ عُمَرَ قَالَ أَخْبَرَنَا يُونُسُ عَنِ الزُّهْرِيِّ عَنْ عُرْوَةَ عَنْ عَائِشَةَ

أَنَّ النَّبِيَّ ﷺ كَانَ يَأْمُرُ بِصِيَامِ عَاشُورَاءَ قَبْلَ أَنْ يَنْزِلَ رَمَضَانُ فَلَمَّا فُرِضَ رَمَضَانُ كَانَ مَنْ شَاءَ صَامَ وَمَنْ شَاءَ أَفْطَرَ