Sherlock, wanting to minimize the pain he caused Molly in the Final Problem, decides to pretend what he said on the phone was genuine, despite the circumstances, and to ask her out. It's only when they're actually on a date that Sherlock realizes he really wasn't lying.
Molly/Sherlock- Not a Lie