According to Gauss's law of magnetism, the net magnetic flux through any closed surface is always zero. This law implies that the number of magnetic field lines leaving any closed surface is always equal to the number of magnetic field lines entering it.