A nuclear magnetic resonance well logging machine probe permanent magnet for generating gradient magnetic field in ground layer, engaged with nuclear magnetic resonance well logging machine to check the physical information of ground layer, is characterized in that a magnet post (86)is composed of adhered at least one small magnetic block (6), wherein the magnet is one portion of one cylinder. The invention sticks the magnet on well wall, while the magnet is N30 high-energy-accumulation samarium-cobalt magnet, with small volume, strong magnetic field, and high detection length. The invention simplifies the probe structure, improves the bearing strength of whole probe, improves the length of pre-polarized magnet, and improves detection speed, which can avoid blind area at the well wall direction, to improve detection accuracy, and generate gradient magnetic field along the well wall, to realize multi-dimension well logging.