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."
حدثنا مسدد حدثنا يحيى عن عبيد الله قال أخبرني نافع
كان عاشوراء يصومه أهل الجاهلية فلما نزل رمضان قال من شاء صامه ومن شاء لم يصمه