I wish I could stop smoking cigarettes but I just can't kick the habit.
Rashid used to bite his fingernails but his girlfriend made him kick the habit.
Note: "Kick a habit" can be used when talking about habits in general, as in "Kicking a habit isn't easy."