Ole Gunnar Solskjaer wound back the years as the Manchester United manager came off the bench to score for Alex Ferguson's side against a Bayern Munich team in the "Treble Reunion" match — 20 years to the day after United won the 1999 Champions League final.

Fans young and old descended on Old Trafford on Sunday to see some of the club's greatest players — including David Beckham — as Manchester United Legends beat Bayern Munich Legends 5-0.

Solskjaer again started on the bench but made an impact far quicker than that night at the Nou Camp in Barcelona, where his goal deep in stoppage time sealed a 2-1 victory over Bayern and the treble for United on May 26, 1999. United also won the FA Cup and the Premier League that season.

Manchester United Legends' Ole Gunnar Solskjaer, left, vies for the ball with Bayern Munich Legends' Martin Demichelis  during the legends soccer match at Old Trafford, in Manchester, Sunday May 26, 2019. (Martin RickettPA via AP)

Manchester United Legends' Ole Gunnar Solskjaer, left, vies for the ball with Bayern Munich Legends' Martin Demichelis during the legends soccer match at Old Trafford, in Manchester, Sunday May 26, 2019. (Martin RickettPA via AP)

This time Solskjaer came on for Andy Cole shortly after kickoff and produced a smart finish inside four minutes to put United Legends on course for a comprehensive win.

Dwight Yorke gave the hosts a two-goal cushion at the break, before man-of-the-match Nicky Butt, substitute Louis Saha and returning favorite Beckham completed a rout in front of 61,175 fans at Old Trafford, raising 1.5 million pounds ($1.9 million) for the Manchester United Foundation.

With the teams led out by Ferguson, supporters were treated to the familiar sight of Beckham firing cross-field balls, Jaap Stam showing no mercy at the back and Paul Scholes bossing the midfield.

Manchester United Legends manager Sir Alex Ferguson with the trophy after the legends match between Manchester United Legends and Bayern Munich Legens at Old Trafford, Manchester, England, Sunday, May 26, 2019. (Martin RickettPA via AP)

Manchester United Legends manager Sir Alex Ferguson with the trophy after the legends match between Manchester United Legends and Bayern Munich Legens at Old Trafford, Manchester, England, Sunday, May 26, 2019. (Martin RickettPA via AP)

After a difficult season — with United finishing sixth in the Premier League — Sunday's match brought a feel-good factor back to Old Trafford.

"I've got to thank the supporters again for supporting us and the money will be well spent," Solskjaer told MUTV. "I think everyone knows how much it means to play for Manchester United and this match, for everyone, means so much more than just turning up because it was such a big part of our lives.

"We have a big job getting back to these moments. We want to have moments to celebrate and that's what we're trying to do."

Manchester United Legends manager Sir Alex Ferguson with the trophy is congratulated by Bayern Munich Legends Lothar Matthaus after the legends match between Manchester United Legends and Bayern Munich Legens at Old Trafford, Manchester, England, Sunday, May 26, 2019. (Martin RickettPA via AP)

Manchester United Legends manager Sir Alex Ferguson with the trophy is congratulated by Bayern Munich Legends Lothar Matthaus after the legends match between Manchester United Legends and Bayern Munich Legens at Old Trafford, Manchester, England, Sunday, May 26, 2019. (Martin RickettPA via AP)

More AP soccer: https://apnews.com/apf-Soccer and https://twitter.com/AP_Sports

Manchester United Legend's David Beckham celebrates scoring his side's fifth goal of the game during the legends match between Manchester United Legends and Bayern Munich Legens at Old Trafford, Manchester, England, Sunday, May 26, 2019. (Martin RickettPA via AP)

Manchester United Legend's David Beckham celebrates scoring his side's fifth goal of the game during the legends match between Manchester United Legends and Bayern Munich Legens at Old Trafford, Manchester, England, Sunday, May 26, 2019. (Martin RickettPA via AP)