Humayd bin Abdul-Rahman bin Awf reported,

He heard Muawiya bin Abu Sufyan, on the day of Ashura during the year he performed Hajj, say from the pulpit, "People of Medina, where are your scholars? I heard the Messenger of Allah ﷺ say about this day, 'This is the day of Ashura. Its fasting has not been prescribed upon you, but I am fasting. Whoever wishes may fast, and whoever wishes may break his fast.'"

Azami 4482

Sahih

عن حميد بن عبد الرحمن بن عوف

أنه سمع معاوية بن أبي سفيان يوم عاشوراء، عام حج وهو على المنبر يقول: يا أهل المدينة، أين علماؤكم؟ سمعت رسول الله ﷺ يقول لهذا اليوم: هذا يوم عاشوراء، ولم يكتب عليكم صيامه وأنا صائم، فمن شاء فليصم، ومن شاء فليفطر.

الأعظمي 4482صحيح
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 4482 (2nd edition)
Azami 4482