Peace, mercy, and blessings of Allah be upon you.
Sheikh Abu Dawud, may Allah bless you, regarding the Hadith of fasting the day of Ashura and the Prophet's (PBUH) question to the Jews about the reason for fasting, the Prophet (PBUH) lived in Mecca and Medina, and the Jews were there, and he knew every small and large detail, so how did he not know about that day until one year before his death?
الجواب الشرعي
المفتي / المجيب: His Eminence Sheikh Mufti Abu Dawoud Abdul Rahman Al-Hasami
In the name of Allah, the Most Gracious, the Most Merciful. Peace, mercy, and blessings of Allah be upon you. The question asks: How did the Prophet, peace be upon him and his family, not know that the Jews fasted the day of Ashura until shortly before his death, peace be upon him? The answer is: When the Prophet, peace be upon him and his family, migrated to Medina, his contact with the Jews was minimal, meaning that the Jews lived in fortified strongholds. Banu Qurayza, Banu Nadir, and Banu Qaynuqa had strongholds, so they did not mix with the Muslims to that extent. When Khaybar was conquered shortly before the death of the Prophet, peace be upon him—meaning a year, two, or three years prior—when Khaybar was conquered and the Jews of Khaybar began working as laborers, meaning employees for the companions and the Prophet, peace be upon him and his family, the Messenger of Allah was able to discover more about their condition. When he found them fasting the day of Ashura, he asked them: 'Why do you fast the day of Ashura?' and they answered him. Thus, the issue is resolved. And Allah knows best.