$f=f(x,y,z)$ is a scalar function, and $\mathbf{F}=(F_1,F_2,F_3)$ is a vector field, where each component is a scalar function of three variables ($x,y,z$).
We can multiply vectors by scalars to get a new vector field:
$$f\mathbf{F}=(fF_1,fF_2,fF_3)$$ This leads to $$\nabla\cdot (f\mathbf{F})=\frac{\partial }{\partial x}fF_1+\frac{\partial }{\partial y}fF_2+\frac{\partial }{\partial z}fF_3$$ Using the product rule, $$\nabla\cdot (f\mathbf{F})=(f_xF_1+fF_{1x})+\cdots=f(F_{1x}+F_{2y}+F_{3z})+(F_1f_x+F_2f_y+F_3f_z)$$ Now we re-write: $$f(\nabla\cdot\mathbf{F})+\mathbf{F}\cdot(\nabla f)$$ and the equation is proved. A good way to remember this formula (and others) is to think in terms of a generalized "product rule": using the "nabla" ($\nabla$) operator in a loose sense, we can write $$\nabla\cdot(f\mathbf{F})=(\nabla f)\cdot\mathbf{F}+f\cdot(\nabla\cdot \mathbf{F})$$ Now just figure out which dots represent scalar products, and which dot products!