Narrated Safiyyah, daughter of Abu 'Ubaid, on the authority of some of the wives of the Prophet (ﷺ) who said, "He who goes to one who claims to tell about matters of the Unseen and believes in him, his Salat (prayers) will not be accepted for forty days."[Muslim].
App reference: Book 18, Hadith 159
Arabic/English book reference: Book 18, Hadith 1669