The certain mobs when a player near it,they stop attacking player and stay next the player:
Zombies
Zombie Villagers
Zombie Pigmen
Husks
Drowneds
Vindicators
Endermen
Wither Skeletons
Vexes
Related issues
duplicates
Attachments
Comments

[media]

Confirmed in 1.14.4 and 19w34a though


Confirmed on 20w12a but it's a duplicate of Duplicate of MC-147516