Bismillaahir Rahmaanir Raheem
Assalamu Alaikum wa Rahmatullahi wa Barkatuh!
Narrated Safiyyah, daughter of Abu Ubaid (Radi Allah Anhum)
on the authority of some of the wives
of the Prophet (Sallallahu Alaihi Wasallam) 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.''
( Sahih Muslim ~ Book #026, Hadith #5540 )
Commentary:
We learn from this Hadith that visiting soothsayers and astrologers
for the purpose of knowing from them what lies hidden in future
is such a great offense that he who does it,
loses all merits of his forty days Salat.
Some people try to detect the culprits involved in a theft case
through the so-called fortunetellers or seek their advice
in matters relating to business, marriage etc.
All such things are unlawful because
Allah Subhanahu wa ta'ala, Alone knows the matters of the Unseen.