I have two sentences:
He locked the door.
He went out for dinner.
Which tense we should use to connect them?
He locked the door and went out for dinner
Or: He had locked the door before going out for dinner.
Tell me which one is better? and the meaning of each one?