'Ashurah was a day on which we used to fast in pre-Islamic days. When (fasting of) Ramadan was prescribed, the Messenger of Allah (ﷺ) said: This is one of the days of Allah ; he who wishes may fast on it.
Sunan Abi Dawud Book 14, Hadith 131