In this case oxidation number of 'H' is negative becasue, both 'Na' and 'B' are less electronegative atom than 'H'.
Let the oxidation number of 'B' is 'x'
+1 + x + (−1 x 4) = 0
or, x = +3