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 in gratitude to Allah."The Prophet ﷺ said, "I have more right to Musa than they do."So he fasted on that day and ordered that it be observed as a fast.

Azami 12927

Sahih

عن ابن عباس

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

الأعظمي 12927صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Shuara
Section
His saying, "And We saved Musa and those with him all together, then We drowned the others"
Numbering
Jami al-Kamil 12927 (2nd edition)
Azami 12927