In Castner process the process of extracting sodium metal can be written as,
$4 \mathrm{NaOH} \longrightarrow 4 \mathrm{Na}^{+}+4 \mathrm{OH}^{-}$
Its oxidation reaction which occurs at anode is
$4 \mathrm{OH}^{-} \longrightarrow 2 \mathrm{H}_2 \mathrm{O}+\mathrm{O}_2+4 e^{-}$