Gauss Law for Magnetism
When you break a magnet, both pieces have a north pole and a south pole. Unlike charge, you cannot isolate a single pole (no magnetic monopoles). This means that the magnetic field lines close upon themselves.
Whatever magnetic field lines leave the closed surface will enter the closed surface somewhere else. This is represented mathematically: