We consider an optimal stopping problem in a certain model described by a stochastic delay differential equation. We reduce the initial problem to a free-boundary problem of parabolic type and prove the corresponding verification assertion. We also give an example of such an optimal stopping problem related to mathematical finance.