Abdullah bin Abbas reported,

When the Prophet ﷺ arrived in Medina, he found the people fasting on a particular day, namely Ashura. They said, "This is a great day. It is the day on which Allah saved Musa and drowned the people of Pharaoh, so Musa fasted it in gratitude to Allah."He said, "I have more right to Musa than they do." So he fasted it and commanded that it be fasted.

Azami 8436

Sahih

عن ابن عباس

أن النبي ﷺ لما قدم المدينة وجدهم يصومون يوما يعني عاشوراء فقالوا: هذا يوم عظيم، وهو يوم نجى الله فيه موسى، وأغرق آل فرعون، فصام موسى شكرا الله، فقال: أنا أولى بموسى منهم فصامه وأمر بصيامه.

الأعظمي 8436صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Stories of the prophets
Chapter
Reports of Musa عليه السلام
Section
Allah saved Musa عليه السلام and drowned the family of Pharaoh
Numbering
Jami al-Kamil 8436 (2nd edition)
Azami 8436