Sahih Muslim 1126 c
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
كَانَ يَوْمًا يَصُومُهُ أَهْلُ الْجَاهِلِيَّةِ فَمَنْ أَحَبَّ مِنْكُمْ أَنْ يَصُومَهُ فَلْيَصُمْهُ وَمَنْ كَرِهَ فَلْيَدَعْهُ "
Ibn 'Umar (Allah be pleased with them) said that the day of 'Ashura was mentioned before the Messenger of Allah (ﷺ). Thereupon the Messenger of Allah, (ﷺ) said:
That was a day on which the people of pre-Islamic days used to observe fast. So he who amongst you likes to observe fast should do so, and he who does not like it should abandon it.
Full reference and source
Sahih Muslim 1126 c In-book : Book 13, Hadith 150 USC-MSA web (English) : Book 6, Hadith 2506 (deprecated)
View source on Sunnah.com (opens in a new tab)