Since in the above reaction the compound formed is an ionic compound, which may also be represented as Na+H–(s), this suggests that one half reaction in this process is :
2Na(s)→2Na+(g)+2e−
And the other half reaction is:
H2(g)+2e−→2H−(g)
This splitting of the reaction under examination into two half reactions automatically reveals that here sodium is oxidised and hydrogen is reduced, therefore, the complete reaction is a redox change.