In Griffith's Electrodynamics, in the section 4.2, just after the equation 4.9, he writes "sleight-of-hand casts this integral into a much more illuminating form"...
I have a doubt in that. If the Gradient (or differentiation if carried out) is with respect to primed coordinates, how can variable r be differentiated as r' ? It would be of great help if someone clarifies this point.