Step 1: Electrode logic
Anode attracts anions. Anion here is chloride, which gives up one electron each to form chlorine atoms that pair to $Cl_2$ gas.
Step 2: Result
Reaction (D). Sodium is formed at the cathode, so (A) belongs there.
Final Answer:
Option D.
\[ \boxed{\text{(D)}\ 2Cl^-_{(l)} \rightarrow Cl_{2(g)} + 2e^-} \]