Al-Ilmam bi-Ahadith al-Ahkam 116
وَعَن أنس، أَن الْيَهُود كَانُوا إِذا حَاضَت الْمَرْأَة مِنْهُم لم يواكلوها، وَلم يجامعوها فِي الْبيُوت [فَسَالَ أَصْحَاب النَّبِي ﷺ النَّبِي ﷺ] فَأنْزل الله عَزَّ وَجَلَّ {ويسألونك عَن الْمَحِيض قل هُوَ أَذَى فاعتزلوا النِّسَاء فِي الْمَحِيض} إِلَى آخر الْآيَة الْبَقَرَة ٢٢٢ . فَقَالَ النَّبِي ﷺ : " اصنعوا كل شَيْء إِلَّا النِّكَاح " الحَدِيث. أَخْرجُوهُ إِلَّا البُخَارِيّ.
From Anas, that when a woman among the Jews menstruated, they would not eat with her nor live with her in the houses. [The Companions of the Prophet ﷺ asked the Prophet ﷺ,] and Allah, Mighty and Majestic, revealed: 'They ask you about menstruation. Say: It is a harm, so keep away from women during menstruation' to the end of the verse (al-Baqarah 2:222). The Prophet ﷺ said: "Do everything except intercourse." The hadith. They reported it, except al-Bukhari.