Crystal Palace missed out on the chance to move out of the bottom three as they let a two-goal lead slip at home to Manchester United.
The hosts took an early lead through a deflected strike from Andros Townsend and seemed to be on their way to all three points when Patrick van Aanholt doubled the advantage three minutes into the second-half.
However, Jose Mourinho’s side roared back, scoring first through Chris Smalling before Romelu Lukaku slotted home a 76th-minute equalizer.
As the game appeared to be heading for a draw, Nemanja Matic produced a superb half-volley from 25 yards to steal the three points in added time.
United’s initial sluggishness suggested they were distracted by the prospect of Saturday’s fixture with rivals Liverpool, but they fought back convincingly, extending Palace’s winless run to six and denying them a win that would have taken them from 18th to 13th in the Premier League.
While avoiding a first-ever Premier League defeat by Palace, United also moved ahead of Liverpool and up to second while continuing to build the sense of momentum that began with their recent victory over Chelsea.
Roy Hodgson’s team, who this season at Selhurst Park had held runaway leaders Manchester City, were without the on-loan Timothy Fosu-Mensah, ineligible against his parent club.