Dear student,
Ionic hydrides are frequently used to remove traces of water from organic compounds, because it provides H- (hydride ion) which is a strong bronsted-base which reacts with water from organic compound.
NaH ------> Na+ + H-
H- + H2O -------> H2 + OH-
Regards