This paper studies the retirement decision, optimal investment and consumption strategies under habit persistence for an agent with the opportunity to design the retirement time. The optimization problem is formulated as an interconnected optimal stopping and stochastic control problem (Stopping-Control Problem) in a finite time horizon. The problem contains three state variables: wealth $x$, habit level $h$ and wage rate $w$. We aim to derive the retirement boundary of this wealth-habit-wage triplet $(x,h,w)$. The complicated dual relation is proposed and proved to convert the original problem to the dual one. We obtain the retirement boundary of the dual variables based on an obstacle-type free boundary problem. Using dual relation we find the retirement boundary of primal variables and feed-back forms of optimal strategies. We show that if the so-called de facto wealth exceeds a critical proportion of wage, it will be optimal for the agent to choose to retire immediately. In numerical applications, we show how de facto wealth determines the retirement decisions and optimal strategies. Moreover, we observe discontinuity at retirement boundary: investment proportion always jumps down upon retirement, while consumption may jump up or jump down, depending on the change of marginal utility. We also find that the agent with higher standard of life tends to work longer.