Sayyadi al-Junaid Baghdadi, may Allah be Merciful to him, was once asked, "What is the methodology of cutting one's self to all except Allah."? He said, "By means of a repentance which removes persistence in sin; by means of a fear which removes all procrastination; by means of a hope which induces you to good deeds; by means of debasing the soul by bringing its final end close to it and by pushing false hope far from it."

He also said, "Beneficial knowledge is that you know your Lord, and that you not give any consideration to your own abilities."

See Sheikh Abdullah Ibn Fodio's
"Diya'l Qawaa'id" for further reading on this.