Mufti Mohammed Shafi (Allah have mercy on him) said,
‘The prescription for becoming a friend of Allah (wali) has three components,
1. Companionship (suhba) of a friend of Allah
2. Following his instructions
3. (Excessive) Remembrance of Allah ‘
Ma’arif al Quran, volume 4, page 550
Karachi