The Origin and Purpose of the Fast of the 10th of Muharram
It is narrated from Ibn Abbas (may Allah be pleased with them both) that when the Prophet ﷺ came to Madinah, he ﷺ saw the Jews fasting on the 10th of Muharram. So he ﷺ asked them the reason for it, and they said, “This is a good day. On it Allah Almighty delivered Musa (peace be upon him) and the Children of Israel from their enemy, so Musa (peace be upon him) fasted on this day.” The Prophet ﷺ said:
فانا أحق بموسى منكم فصامه وأمر بصيامه
“Then we are more deserving of Musa (peace be upon him) than you.” So he ﷺ fasted on that day and also commanded the Companions (may Allah be pleased with them) to fast it.
[Sahih al-Bukhari: 2004, Kitab al-Sawm: Bab Sawm Yawm Ashura, Sahih Muslim: 1130, Ahmad: 291/1, Abu Dawud: 3444, Ibn Majah: 1734, Humaydi: 515, Darimi: 22/2, Sharh al-Sunnah: 1782, Ibn Hibban: 3625, Ibn Khuzaymah: 2084]