Sunan Ibn Majah · Hadith 682
The Book of Purification and its Sunnah - كتاب الطهارة وسننها
حدثنا أبو بكر بن أبي شيبة، وعلي بن محمد، قالا حدثنا وكيع، حدثنا حماد بن سلمة، عن حكيم الأثرم، عن أبي تميمة الهجيمي، عن أبي هريرة، قال قال رسول الله صلى الله عليه وسلم " من أتى حائضا أو امرأة في دبرها أو كاهنا فصدقه بما يقول فقد كفر بما أنزل على محمد " .
It was narrated that Abu Hurairah said: "The Messenger of Allah said: 'Whoever has intercourse with a menstruating woman, or with a woman in her rear, or who goes to a fortuneteller and believes what he says, he has disbelieved in that which was revealed to Muhammad.'"
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).