Abdullah bin Umar reported,

The people of the pre-Islamic era used to fast on Ashura. When Ramadan was prescribed, he said, "Whoever wishes may fast it, and whoever wishes may leave it."

Bukhari 4501

Sahih

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

عن ابن عمر رضي الله عنهما قال

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

البخاري 4501صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
O you who believe, fasting has been prescribed for you as it was prescribed for those before you, that you may attain taqwa
Numbering
Darussalam 4501
Bukhari 4501