What is the (significance) of this day that you observe fast on it? They said: It is the day of great (significance) when Allah delivered Moses and his people, and drowned the Pharaoh and his people, and Moses observed fast out of gratitude and we also observe it. Upon this the Messenger of Allah ﷺ said: We have more right, and we have a closer connection with Moses than you have; so Messenger of Allah ﷺ observed fast (on the day of 'Ashura), and gave orders that it should be observed. (Using translation from Muslim 1130c)
أَنَّ رَسُولَ اللهِ ﷺ قَدِمَ الْمَدِينَةَ فَوَجَدَ الْيَهُودَ صِيَامًا يَوْمَ عَاشُورَاءَ فَقَالَ لَهُمْ رَسُولُ اللهِ ﷺ مَا هَذَا الْيَوْمَ الَّذِي تَصُومُونَهُ فَقَالُوا هَذَا يَوْمٌ عَظِيمٌ أَنْجَى الله ﷻ فِيهِ مُوسَى وَقَوْمَهُ وَغَرِقَ فِيهِ فِرْعَوْنُ وَقَوْمُهُ فَصَامَهُ مُوسَى شُكْرًا فَنَحْنُ نَصُومُهُ فَقَالَ رَسُولُ اللهِ ﷺ فَنَحْنُ أَحَقُّ وَأَوْلَى بِمُوسَى مِنْكُمْ فَصَامَهُ رَسُولُ اللهِ ﷺ وَأَمَرَ بِصِيَامِهِ