Abdullah bin Umar reported,

The people of the pre-Islamic era used to fast on the day of Ashura, and the Messenger of Allah ﷺ and the Muslims fasted it before the fast of Ramadan was made obligatory. When Ramadan was made obligatory, the Messenger of Allah ﷺ said, "Ashura is one of the days of Allah the Exalted, so whoever wishes may fast it, and whoever wishes may leave it."

Ahmad 6292

Sahih

حدثنا ابن نمير أخبرنا عبيد الله عن نافع قال

أخبرني ابن عمر

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

أحمد 6292صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Umar
Numbering
Darussalam 6292
Ahmad 6292