From Sahih Muslim (Hadith 2667):
Abdullah b 'Abbas reported that the Messenger of Allah (ﷺ) had said:If I live till the next (year), I would definitely observe fast on the 9th, and the narration transmitted by Abu Bakr is:" He meant the day of Ashura
Reference: Muslim 2667