[Machine] That the Messenger of Allah ﷺ arrived in Medina on the day of Ashura and saw the Jews fasting. The Messenger of Allah ﷺ asked, "What is this?" They replied, "This is a day on which Allah saved Moses from Pharaoh and drowned Pharaoh, so we observe fast out of gratitude." The Messenger of Allah ﷺ said, "I have more claim over Moses than you." So the Messenger of Allah ﷺ ordered fasting on that day.
أَنَّ رَسُولَ اللهِ ﷺ قَدِمَ الْمَدِينَةَ يَوْمَ عَاشُورَاءَ وَإِذَا الْيَهُودُ صِيَامٌ فَقَالَ رَسُولُ اللهِ ﷺ «مَا هَذَا؟» قَالُوا هَذَا يَوْمٌ غَرَّقَ اللهُ فِيهِ فِرْعَوْنَ وَنَجَّى مُوسَى فَقَالَ رَسُولُ اللهِ ﷺ «وأَنَا أَوْلَى بِمُوسَى عَلَيْهِ السَّلَامُ فَأَمَرَ رَسُولُ اللهِ ﷺ بِصَوْمِهِ»