Having a dream of doing evil

Q 2: A sheikh told me that one of the sheikhs who had passed away appeared to his father and to another man in a Ru'ya (true dream), and told his father to build a shrine for him. So he did, and his dead body was found intact and unaltered. It is known that these shrines are frequented by people, and this might lead them to Shirk (associating others with Allah in His Divinity or worship) as stated by Ibn Taymiyyah. People circumambulate these shrines and supplicate to Allah through them. Some Sufis told me that if a shaykh dies without performing a Karamah (an extraordinary event caused by Allah for or through a pious person), he appears to one of the leaders in a Ru'ya and orders him to build a shrine for him. This is impermissible in Shari`ah according to the opinion of (Part No. 3; Page No. 97) the Salaf (righteous predecessors). Is the one that appears in the Ru'ya the sheikh or Satan? Can we believe in this and carry out this order?

A: This is not a Ru'ya, but just a dream, and dreams are induced by Satan, as they contradict Shari`ah. Building structures and domes over graves is one of the major sins and a means leading to Shirk. It was authentically reported from Abu Al-Hayyaj that he said, "`Aly said to me: May I send you on the same mission that Allah's Messenger (peace be upon him) sent me on? Erase every image, and level every raised grave.'" Narrated by Muslim. We should carry out what was authentically reported from the Prophet (peace be upon him). It is Haram (prohibited) to act upon such a dream.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.