In The Name of Allaah, The Most Merciful, The Bestower of Mercy.
Imaam Ibnul Qayyim [may Allaah have mercy upon him] said:
Disobedience is the cause of being in shaytaan’s captivity and a prisoner of lowly desires. A disobedient person is always in the captivity of his devil, the prison of his lusts and leadership of his desires. He is a captive and a shackled prisoner. There is neither a captive whose state of affairs is more evil than that of a captive whose captor is his worst enemy, nor is there a prison more restricted than the prison of desires, and shackles that are more restrictive than the shackles of lust; so how can a heart that is a captive and a shackled prisoner follow the path to Allaah and the home of the afterlife? How can he follow a single path when the heart is shackled and stricken with harm from every angle as a result of the [severity] of its shackles? The likeness of the heart is that of a bird- distances from harm whenever it flies high and surrounded by harm whenever it lands. And just as an unprotected sheep in the midst of wolves is quickly destroyed, likewise if there is no protection from Allaah for the person, it is inevitable that his wolf will prey on him. He is protected by Allaah through fear of Allaah which is shield and shelter from Allaah between the person and his wolf, just as it is a shield against punishment in this life and the afterlife. Whenever the sheep is closer to its shepherd, it is safer and whenever it is distanced from the shepherd, it comes closer to being destroyed. So the sheep is more protected when it is closer to the shepherd, because the wolf only snatches the (sheep, cattle) that are distanced and far away from the shepherd.
The basis of this affair is that whenever the heart is distanced from Allaah, then harm upon it is quicker, and whenever it is comes closer to Allaah, it is distanced from harm. Being distanced from Allaah is of various levels and some are more severe than others. Being distanced due to disobedience is greater than being distanced due to thoughtlessness; being distanced due to religious innovation is greater than being distanced due to disobedience, and being distanced due to hypocrisy and polytheism is greater than all of that.
Ad-Daa Wad-Dawaa page 119-120. slightly paraphrased