Allama Shibli Nomani (Allah have mercy on him) mentioned the following while describing the Tasawwuf practiced by Maulana Jalaluddin Rumi (Allah sanctify his secret),
Studying medicine is like acquiring the Shariah. It enables an individual to know the normal and diseased.
With this knowledge an individual suspects himself to be diseased and approaches a Master (Shaykh). He makes a diagnosis and prescribes a treatment. Following this treatment regimen is Tariqa.
After successful treatment a healthy state is achieved. This is Haqiqa.
Paraphrased from Sawanih Maulana Rum rehmatullah aleh
Hocapasa, Istanbul, Turkey