Consider a scalar field $\phi$ with the following Lagrangian density:
$$\mathscr{L}=-\frac{1}{2} \partial_{\mu} \phi \partial^{\mu} \phi-V(\phi),$$ and consider a FRW metric, whose line element is given by $$\mathrm{d} s^{2}=-\mathrm{d} t^{2}+a(t)^{2}\left[\frac{\mathrm{d} r^{2}}{1-k r^{2}} + r^{2} \mathrm{d}\theta^{2} + r^{2} \sin^{2} \theta \mathrm{d}\phi^{2}\right],$$ with $a(t)$ being the FRW scale factor. According to e.g. Turner 1983, the equation for motion for $\phi$ in this setting turns out to be $$\ddot{\phi}+3 H \dot{\phi}+V^{\prime}(\phi)=0.$$
How do I derive this? I have varied the action of the scalar field and obtained the scalar field equation of motion for a generic metric $g_{\mu\nu}$: $$g_{\mu\nu} \partial^\mu \partial^\nu \phi - \frac{\delta V(\phi)}{\delta \phi}=0.$$ Now, I suppose that the $\ddot{\phi}$ term in the equation of motion is sourced by the $g_{00}$ component of the metric tensor, but what is the origin of the term $3 H \dot{\phi}$ given the metric I have written above?