Sahih al-Bukhari 3397
Ali bin Abdullah (Madini) told us that Sufyan (bin Uyainah) narrated to us that Ayyub Sakhtiyani told us. He narrated from (Abdullah) bin Sa'id bin Jubair, he from his father, and his father from Hazrat Ibn Abbas (ra), that when the Prophet (saw) came to Medina, he saw that the Jews fasted on one day, namely Ashura, and they used to say: This is a very great day, and this is the day on which Allah saved Moses (as) and drowned the people of Pharaoh. Therefore Moses (as) fasted on it to give thanks to Allah. Seeing this, the Prophet (saw) said: “I am more closely connected with Moses (as) than they are.” So he too fasted on that day and told the people to fast.
AI-translated by Islam-Today
Book 24: The Statement of Allah Taa'la: "And to Moses Allah spoke directly."