The magnetic field lines due to a bar magnet are correctly shown in figure:
The magnetic field lines due to a bar magnet are closed continuous curves directed from North to South outside the magnet and directed from South to North inside the magnet. Hence option (d) is correct.