Imam Ahmed Raza Khan(r)wrote
"Shariah and Tariqah are not two different or opposite things. Without obeying the Shariah one cannot approach Allah. Revealed law is the collection of all the commands concerning body and soul, the spirit and heart, all the divine science and the infinite knowledge. A part of Shariah (Revealed law) is called Tariqah.So all the actions and performances of the saints have to be judged in accordance with the divine Shariah".