Sunan Ibn Majah, Book 1, Hadith 687 (In-Book) ⓘ
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."
حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى، حَدَّثَنَا أَبُو الْوَلِيدِ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ، أَنَّ الْيَهُودَ، كَانُوا لاَ يَجْلِسُونَ مَعَ الْحَائِضِ فِي بَيْتٍ وَلاَ يَأْكُلُونَ وَلاَ يَشْرَبُونَ . قَالَ فَذُكِرَ ذَلِكَ لِلنَّبِيِّ ـ صلى الله عليه وسلم ـ فَأَنْزَلَ اللَّهُ {وَيَسْأَلُونَكَ عَنِ الْمَحِيضِ قُلْ هُوَ أَذًى فَاعْتَزِلُوا النِّسَاءَ فِي الْمَحِيضِ} فَقَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " اصْنَعُوا كُلَّ شَىْءٍ إِلاَّ الْجِمَاعَ " .
also referenced under: Hadith 644 (Reference) & Volume 1, Book 1, Hadith 644 (DarusSalam)