opportunity attack (D&D 5e)

My question has to do with situations where multiple "player characters" are in simultaneous combat with one or more "non-player characters". If an ally steps back after each hit on the enemy, but remains within its reach, causing the creature to follow, until it is eventually out of the ally’s reach, would the ally then receive an opportunity attack?? I have studied the players handbook, and other core books, Reddit, and google searched, to no avail.