On the optimal stopping problem driven by spectrally negative Lévy processes