Answered by Sayyidi Habib Umar bin Hafiz (may Allah preserve him and benefit us by him).
How can someone overcome the desire of their lower self which strongly calls them to commit acts of disobedience?
Such a person should remind himself of the consequences of wrongdoing. He should remind himself of Allah’s rewards and punishments. He must cultivate a strong will to leave that which is harmful to his religion, and be firm and determined in this, regardless of the calls of his lower self or the Devil. He must constantly renew the will to refrain from falling into sin. He must thereafter choose good company, as this will help him. He must also busy himself with a variety of good works, the greatest of which is the remembrance of Allah and the occupation of the heart with this, until it is filled with Allah’s remembrance. All of these are effective means in overcoming the desires of the lower self.