Gauss' law for magnetic field

We observe that magnetic field is produced by currents, never by isolated magnetic poles. Therefore $$ \begin{align*} \int_S \v B\cdot d\v A = 0 \iff \nabla\cdot\v B = 0. \end{align*} $$