The Messenger of Allah ﷺ said, "Whoever has intercourse with a menstruating woman, or with a woman in her anus, or goes to a fortune-teller and believes what he says, has disbelieved in what was revealed to Muhammad ﷺ."
حدثنا وكيع حدثنا حماد بن سلمة عن حكيم الأثرم عن أبي تميمة
قال رسول الله ﷺ من أتى حائضا أو امرأة في دبرها أو كاهنا فصدقه بما يقول فقد كفر بما أنزل الله على محمد ﷺ
Its isnad is hasan. Hakeem Athram is Ibn Hakeem, who has been criticized by some but was deemed reliable by Ibn Hibban and Ibn Abu Shayba. Abu Tamima, Tarif bin Mujalid, is reliable. The hadith has already appeared in 2/408, 6964.