Ionic saline hydrides react with water to form metal hydroxide and hydrogen.
MH+H2O→AOH+H2(A=Na,Ca....)
On addition to organic solvents, saline hydrides react with water present in them. Hydrogen escapes and metallic hydroxides remains. The dry organic solvent is distilled out.