On 5 June 2007, it was announced that Solskjær had undergone minor surgery after he reported discomfort in his knee while training with Norway. The surgery was a success, but Solskjær failed to fully recover and announced his retirement from professional football on 27 August 2007. On 4 September, at a home game against Sunderland, Solskjær walked onto the pitch to say goodbye to the fans and received a standing ovation. As of his retirement, Solskjær held the record for the most goals scored for Manchester United as a substitute, scoring 28 goals off the bench, as well as the most Premier League goals as a substitute with 17, a mark which has since been passed by Jermain Defoe.