When an aqueous solution of sodium fluoride is electrolysed, the gas liberated at anode is O2 and the gas liberated at cathode is H2.
At cathode, 2H++2e−→H2↑
At anode, 4OH−→2H2O+O2+4e−
The discharge potential of hydrogen ions is lower than the discharge potential of sodium ions.
The discharge potential of hydroxide ions is lower than the discharge potential of fluoride ions.