Abdullah bin Umar reported,

The day of Ashura was mentioned in the presence of the Messenger of Allah ﷺ, and the Messenger of Allah ﷺ said, "It was a day that the people of the pre-Islamic era used to fast. Whoever among you wishes to fast it may do so, and whoever dislikes it may leave it."

Ibn Majah 1737

Sahih

حدثنا محمد بن رمح أنبأنا الليث بن سعد عن نافع

عن عبد الله بن عمر

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

ابن ماجه 1737صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Fasting
Chapter
Fasting on the day of Ashura
Numbering
Darussalam 1737
Ibn Majah 1737