The answer is towards the poles. This is because, at the poles of the magnet, the magnetic field lines get closer together hence indicating that the magnetic force is stronger here. The fields are closest together at the center of the magnet and farthest at the outside side of the magnet.