What is the only time to correctly use “Gute Nacht” in a German-speaking country?

(2 points)
Responses

after leaving the dinner table
after leaving the dinner table

before going to the movie theatre
before going to the movie theatre

coming home from work at 8 p.m.
coming home from work at 8 p.m.

before going to bed

before going to bed