The Prophet ﷺ said: If anyone resorts to a diviner and believes in what he says (according) to the version of Musa), or has intercourse with his wife (according to the agreed version) when she is menstruating, or has intercourse with his wife through her anus, he has nothing to do with what has been sent down to Muhammad ﷺ - according to the version of Musaddad.
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ مَنْ أَتَى كَاهِنًا قَالَ مُوسَى فِي حَدِيثِهِ فَصَدَّقَهُ بِمَا يَقُولُ ثُمَّ اتَّفَقَا أَوْ أَتَى امْرَأَةً قَالَ مُسَدَّدٌ امْرَأَتَهُ حَائِضًا أَوْ أَتَى امْرَأَةً قَالَ مُسَدَّدٌ امْرَأَتَهُ فِي دُبُرِهَا فَقَدْ بَرِئَ مِمَّا أَنْزَلَ اللَّهُ عَلَى مُحَمَّدٍ