Anas bin Malik reported,

When a woman among the Jews was menstruating, they would not eat with her, drink with her, or stay with her in the same house. The companions asked the Prophet of Allah ﷺ about this, so Allah عز وجل revealed "They ask you about menstruation. Say, it is an impurity" [Baqarah 2:222], the verse.The Messenger of Allah ﷺ then instructed them to eat with menstruating women, drink with them, share the house with them, and do everything with them except sexual intercourse.

Nasai 289

Sahih

أخبرنا إسحق بن إبراهيم قال حدثنا سليمان بن حرب قال حدثنا حماد بن سلمة عن ثابث

عن أنس قال

كانت اليهود إذا حاضت المرأة منهم لم يؤاكلوهن ولم يشاربوهن ولم يجامعوهن في البيوت فسألوا نبي الله ﷺ عن ذلك فأنزل الله عز وجل {ويسألونك عن المحيض قل هو أذى} الآية فأمرهم رسول الله ﷺ أن يؤاكلوهن ويشاربوهن ويجامعوهن في البيوت وأن يصنعوا بهن كل شيء ما خلا الجماع

النسائي 289صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Purification
Chapter
Interpretation of the saying of Allah عز وجل, "And they ask you about menstruation"
Numbering
Darussalam 289
Nasai 289