Sunan Ibn Majah 644
It was narrated from Anas that:
The Jews would not sit with a menstruating woman in a house, nor eat with her, nor drink with her. That was mentioned to the Messenger of Allah, then Allah revealed the words: "They ask you concerning menstruation. Say: that is a harmful thing, therefore keep away from women during menses." The Messenger of Allah said: "Do everything except sexual intercourse."
حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى، حَدَّثَنَا أَبُو الْوَلِيدِ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ، أَنَّ الْيَهُودَ، كَانُوا لاَ يَجْلِسُونَ مَعَ الْحَائِضِ فِي بَيْتٍ وَلاَ يَأْكُلُونَ وَلاَ يَشْرَبُونَ . قَالَ فَذُكِرَ ذَلِكَ لِلنَّبِيِّ ﷺ فَأَنْزَلَ اللَّهُ {وَيَسْأَلُونَكَ عَنِ الْمَحِيضِ قُلْ هُوَ أَذًى فَاعْتَزِلُوا النِّسَاءَ فِي الْمَحِيضِ} فَقَالَ رَسُولُ اللَّهِ ﷺ " اصْنَعُوا كُلَّ شَىْءٍ إِلاَّ الْجِمَاعَ " .