The Prophet ﷺ said, "Whoever has intercourse with a menstruating woman, or with a woman in her anus, or visits a fortune-teller has disbelieved in what was revealed to Muhammad ﷺ."
حدثنا بندار حدثنا يحيى بن سعيد وعبد الرحمن بن مهدي وبهز بن أسد قالوا حدثنا حماد بن سلمة عن حكيم الأثرم عن أبي تميمة الهجيمي
عن النبي ﷺ قال من أتى حائضا أو امرأة في دبرها أو كاهنا فقد كفر بما أنزل على محمد ﷺ
Hasan. Abu Dawud also reported it in the Book of Medicine, chapter on fortune-tellers, no. 3904, from the hadith of Yahya bin Saeed, through the same route. Hakeem Athram's hadith is hasan, and Abu Tamima's narration from Abu Hurairah is considered connected according to the majority. The hadith has many corroborating narrations in Muslim, no. 2230, and Hakim, 1/8, and others.