Here's the chemical equation for the reaction:
2 Na (s) + 2 H₂O (l) → 2 NaOH (aq) + H₂ (g)
This is a highly exothermic reaction, meaning it releases a lot of heat. The heat can cause the hydrogen gas to ignite, creating a small explosion.