Manchester United s Cristiano Ronaldo reacts after failing to score during the Europa League group E soccer match between Manchester United and Sheriff at Old Trafford in Manchester, England, Thursday Oct. 27, 2022. AP
The victory, with goals from Diogo Dalot and Marcus Rashford adding to Ronaldo's strike, guaranteed the Red Devils a place in the next round, where they will join Barcelona who were knocked out of the Champions League at the group stage 24 hours earlier.
United manager Erik ten Hag left the Portugal forward out of the United squad for Saturday's draw at Chelsea and he was only allowed to return to first team training this week.
Ronaldo started up front with 18-year-old Argentinian winger Alejandro Garnacho, who was making his maiden senior start.
Right-back Dalot opened the scoring just before the break before Rashford doubled the lead with 25 minutes to play.
Ronaldo claimed his 701st club career goal and made sure of the three points with nine minutes left.
Earlier, Arsenal, who are have already reached the last 16, lost for the first time in the group stage as they went down to a 2-0 defeat at PSV Eindhoven.
After the fixture, Gunners coach Mikel Arteta said defender Pablo Mari, on loan at Italian club Monza, was having medical treatment after being stabbed in a Milan shopping centre in an attack which killed one person and injured three others.
"I just found out," Arteta told reporters.
"He is in hospital. He seems to be OK. I will get a briefing now about what happened."
(For more sports news and updates, follow Ahram Online Sports on Twitter at @AO_Sports and on Facebook at AhramOnlineSports.)