Ayesha reported,

The day of Ashura was a day that the Messenger of Allah ﷺ used to fast during the pre-Islamic era, and Quraysh also used to fast it during that time. When the Prophet ﷺ arrived in Medina, he fasted it and ordered others to fast it. Then, when Ramadan was prescribed, Ramadan became the obligatory fast, and Ashura was left as optional.

Ahmad 25294

Sahih

حدثنا يحيى بن زكريا حدثنا هشام بن عروة عن أبيه

عن عائشة قالت

كان يوم عاشوراء يوما يصومه رسول الله ﷺ في الجاهلية وكانت قريش تصومه في الجاهلية فلما قدم النبي ﷺ المدينة صامه وأمر بصيامه فلما نزل رمضان كان رمضان هو الفريضة وترك عاشوراء

أحمد 25294صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Ayesha
Numbering
Darussalam 25294
Ahmad 25294