Combining a Lie algebraic approach that is due to Wei and Norman [J. Math. Phys. 4, 475 (1963)] and the ideas suggested by Drach [Compt. Rend. 168, 337 (1919)], we have constructed several classes of systems of linear ordinary differential equations that are integrable by quadratures. Their integrability is ensured by integrability of the corresponding stationary cubic Schrödinger, KdV, and Harry–Dym equations. Next, we obtain a hierarchy of integrable reductions of the Dirac equation of an electron moving in the external field. Their integrability is shown to be in correspondence with integrability of the stationary mKdV hierarchy.