OH CHILREN OF THE CORN.....Like get a GRIP:
Sodium and water do not react to form oxygen.
The reaction of sodium with water is as follows:
2 Na + 2 H2O ----> 2 NaOH + H2
It is a highly exothermic reaction. Sodium melts at 97.8 °C. The heat transferred to the environment ignites the hydrogen that is produced; and, the hydrogen burns with a bright flame.
In fact, all the alkali metals react with water to produce elementary hydrogen and the corresponding alkali hydroxides.
Reactivity increases with increasing periodic number. Additionally, the metals rubidium and cesium explode spontaneously when brought into contact with oxygen.