Abdullah bin Abbas reported,

When the Messenger of Allah ﷺ fasted on the day of Ashura and commanded others to fast it, the people said, "Messenger of Allah, this is a day revered by the Jews and Christians."The Messenger of Allah ﷺ replied, "When next year comes, if Allah wills, we shall fast the ninth day as well."But the following year did not arrive before the Messenger of Allah ﷺ passed away.In another narration, "If I live until next year, I will surely fast the ninth."Muslim said, In the narration of Abu Bakr, meaning Ibn Abu Shayba his teacher, he said, "He meant the day of Ashura."

Azami 4491

Sahih

عن عبد الله بن عباس، قال

حين صام رسول الله ﷺ يوم عاشوراء وأمر بصيامه، قالوا: يا رسول الله، إنه يوم تعظمه اليهود والنصارى. فقال رسول الله ﷺ: فإذا كان العام المقبل إن شاء الله صمنا اليوم التاسع. قال: فلم يأت العام المقبل حتى توفي رسول الله ﷺ. وفي رواية: لئن بقيت إلى قابل لأصومن التاسع. قال مسلم: وفي رواية أبي بكر (يعني ابن أبي شيبة شيخه) قال: يعني يوم عاشوراء.

الأعظمي 4491صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Fasting
Chapter
Voluntary fasting and encouragement to do it
Section
Fasting the ninth day along with the tenth in opposition to the People of the Book
Numbering
Jami al-Kamil 4491 (2nd edition)
Azami 4491