In one of the "proofs" of Gauss' law in my textbook, author took divergence of the E.
$$ \mathbf E = \int_{\text{all space}} \dfrac{\hat{\mathscr r} }{{\mathscr r}^2} \rho(r^\prime) d\tau^\prime$$
Where $\mathscr r= r - r^\prime$, $r$ is where field is to be calculated, $\rho$ is charge density and $r^\prime$ is the location of $dq$ charge.
Next step is what I don't understand.
$$\nabla \cdot \mathbf E=\int_{\text{all space}} \nabla\cdot\left(\dfrac{\hat{\mathscr{r}} }{{{\mathscr r}}^2}\right) \rho(r^\prime) d\tau^\prime$$
I don't understand why it is $$\nabla\cdot\left(\dfrac{\hat{\mathscr r} }{{\mathscr r}^2}\right)$$ not $$\nabla\cdot\left(\dfrac{\hat{\mathscr r} }{{\mathscr r}^2}\rho(r^\prime) \right)$$ ?
Isn't $\nabla \cdot (f \mathbf{A}) = f\nabla \cdot (\mathbf {A}) + \mathbf{A} \cdot\nabla f$ not $\nabla \cdot (f \mathbf {A}) = f\nabla \cdot \mathbf{A}$ ?
$f$ is a real function and $\vec A$ is a vector function.