If I am correct, then $\operatorname{div} [(\vec A\cdot \vec B)\vec C] = (\vec A \cdot \vec B) \operatorname{div} \vec C + \vec C \cdot \nabla (\vec A\cdot\vec B)= (\vec A \cdot \vec B) \operatorname{div} \vec C+ \vec C\cdot(\vec A\cdot\nabla)\vec B+\vec C\cdot(\vec B\cdot\nabla)\vec A+\vec C\cdot(\vec A\times(\nabla\times\vec B))+ \vec C\cdot(\vec B\times(\nabla\times\vec A))$
When $\vec A=\vec C$ it will be reduced to $\operatorname{div}[(\vec A\cdot \vec B)\vec A]=(\vec A \cdot \vec B) \operatorname{div} \vec A + \vec A\cdot(\vec A\cdot\nabla)\vec B+\vec A\cdot(\vec B\cdot\nabla)\vec A+\vec A\cdot(\vec B\times(\nabla\times\vec A))$
Is there any possibility that it could be reduced to \begin{equation}\operatorname{div}[(\vec A\cdot\vec B)\vec A]=\vec A\cdot(\vec A\cdot\nabla)\vec B + \vec B\cdot(\vec A\cdot\nabla)\vec A\qquad (*)\end{equation}? I've seen this expression, but I'm not sure whether it's correct or not.
UPD: I understood that I have a magnetic field as $\vec A$ in my task (where I've seen $(*)$ expression), so it could explain why there wasn't $(\vec A \cdot\vec B )\operatorname{div}\vec A $ term, but I still have difficulties with getting $\vec B\cdot(\vec A\cdot\nabla)\vec A$ term.
If I expand the cross product, I get $$\vec A\cdot(\vec B\times(\nabla\times\vec A))=\vec A\cdot(\nabla_{A}(\vec B\cdot \vec A)-(\vec B\cdot\nabla)\vec A )$$ What should I do to get $\vec B\cdot(\vec A\cdot\nabla)\vec A$?