Muawiya bin Abu Sufyan reported,

People of Madinah, where are your scholars? I heard the Messenger of Allah ﷺ say, "This is the day of Ashura. Allah has not made fasting it obligatory upon you, but I am fasting. Whoever wishes may fast, and whoever wishes may break his fast."

Bukhari 2003

Sahih

حدثنا عبد الله بن مسلمة عن مالك عن ابن شهاب عن حميد بن عبد الرحمن أنه سمع

معاوية بن أبي سفيان رضي الله عنهما يوم عاشوراء عام حج على المنبر يقول

يا أهل المدينة أين علماؤكم سمعت رسول الله ﷺ يقول هذا يوم عاشوراء ولم يكتب الله عليكم صيامه وأنا صائم فمن شاء فليصم ومن شاء فليفطر

البخاري 2003صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Fasting
Chapter
Fasting on the day of Ashura
Numbering
Darussalam 2003
Bukhari 2003