Pure sunni aqeeda by Ibn Kathir on Auliya. A Must read.

 
Wali is not the one who is considered wali among the people even if he is having Kashf.
 
Ibn Kathir said regarding Sheikh Yusuf Al-Aqmini a dirty man having lots of Kashf.
 
وكشوفا كثيرة.
 
وكان كثير من العوام وغيرهم يعتقدون صلاحه وولايته، وذلك لأنهم لا يعملون شرائط الولاية ولا الصلاح، ولا يعملون أن الكشوف قد تصدر من البر والفاجر، والمؤمن والكافر، كالرهبان وغيرهم، وكالدجال وابن صياد وغيرهم.
 
فإن الجن تسترق السمع وتلقيه على أذن الإنسي، ولا سيما من يكون مجنونا أو غير نقي الثياب من النجاسة، فلا بد من اختبار صاحب الحال بالكتاب والسنة، فمن وافق حاله كتاب الله وسنة رسوله فهو رجل صالح، سواء كاشف أو لم يكاشف، ومن لم يوافق فليس برجل صالح سواء كاشف أم لا.
 
قال الشافعي: إذا رأيتم الرجل يمشي على الماء ويطير في الهواء فلا تغتروا به حتى تعرضوا أمره على الكتاب والسنة.
 
ولما مات هذا الرجل دفن بتربة بسفح قاسيون، وهي مشهورة به شرقي الرواحية، وهي مزخرفة قد اعتنى بها بعض العوام ممن كان يعتقده، فزخرفها وعمل على قبره حجارة منقوشة بالكتابة، وهذا كله من البدع.
 
He had a lot of Kashf.
 
Many of the awam and others had the aqeedah that he is righteous and had wilayat (i.e. he is wali), that is because they don’t know the sharaait of Wilayah and al Salaah, neither they know Kashf can happen on the hands of Righteous, sinner, Momin, Kafir, Rahbaan, Dajjal, Ibn Saiyaad and others.
 
Indeed the jinn listen by hiding and mention in the ears of people specially the one who is majnoon, who is not righteous and the one whose clothes are impure.
 
It is must to see the state of a man on Quran and sunnah, If his state is according to Quran and sunnah then he is righteous, whether he is having Kashf or not. And if his state is not according to Quran and sunnah then he is not righteous, whether he is having Kashf or not.
 
al Shafiee said:
 
If you see someone flying in the air or walking over the water, don’t be fooled by him until you expose him to Quran and sunnah.
 
When he died he was buried in the graveyard of Qasioon. It is a beautiful graveyard which was beautified by some people who had aqeeda regarding this.. they inscribed stones over his grave and all of these are innovations.
 
[al Bidaya wal Nihaya vol 13 under the people died in 657 h]