Ammar bin Yasir reported,

We were commanded to fast on Ashura before Ramadan was prescribed. When Ramadan was prescribed, we were no longer commanded to fast it.

Azami 4486

Sahih

عن عمار بن ياسر، قال

أمرنا بصيام عاشوراء قبل أن ينزل رمضان، فلما نزل رمضان لم نؤمر به.

الأعظمي 4486صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Fasting
Chapter
Voluntary fasting and encouragement to do it
Section
Clarification on the abrogation of the obligation to fast on Ashura after the obligation of fasting in the month of Ramadan
Numbering
Jami al-Kamil 4486 (2nd edition)
Azami 4486