In classical mechanics, one can show that
$$\frac{\partial S}{\partial t} = -H,\tag{1} $$
where $$S=\int_0^t L(q, \dot{q}, t')dt'\tag{2} $$ is the action associated with a trajectory and $H$ is the Hamiltonian. $t$ is the final time of the trajectory under consideration. Using the path of least action to calculate the action $S$, this is proven in Landau and Lifschitz, Mechanics section 43.
Is this identity also true for general paths, not only limited to the path of least action? In particular, within a path integral formulation for quantum mechanics, is the following true?
$$\frac{\partial}{\partial t}\biggr[\int \mathcal{Dq}e^{iS[q]/\hbar}\biggr]=\int \mathcal{Dq}\frac{-i}{\hbar}H[q]e^{iS[q]/\hbar}\tag{3} $$
If possible, I am looking for a simple proof of the first identity shown above that does not rely on the principle of least action.