Jonathan Osorio scored twice, Richie Laryea and Nick DeLeon added two more in a four-goal extra-time outburst and Toronto FC beat D.C. United 5-1 on Saturday night in the first round of the playoffs to end Wayne Rooney's MLS career.

The 33-year-old Rooney is returning to England to join Derby County.

Toronto advanced to play at New York City FC on Wednesday night.

Toronto FC midfielder Jonathan Osorio (21) celebrates his second goal of the night, during extra time against D.C. United in an MLS soccer Eastern Conference first-round playoff match in Toronto on Saturday, Oct. 19, 2019. (Frank GunnThe Canadian Press via AP)

Toronto FC midfielder Jonathan Osorio (21) celebrates his second goal of the night, during extra time against D.C. United in an MLS soccer Eastern Conference first-round playoff match in Toronto on Saturday, Oct. 19, 2019. (Frank GunnThe Canadian Press via AP)

Lucas Rodriguez tied it for D.C. United in the 93rd minute. Toronto then scored in the 93rd, 95th, 103rd and 105th minutes.

Laryea beat Bill Hamid from close range three minutes into extra time after Michael Bradley stole the ball and fed DeLeon. Two minutes later, Drew Moor headed Alejandro Pozuelo's corner into the goal front and Osorio banged it in. Osorio hammered a volley from just inside the penalty box, and DeLeon, a former D.C. United player, made it 5-1 with a swerving shot from distance.

Marky Delgado opened the scoring for Toronto in the 32nd.

Toronto FC midfielder Nick DeLeon, right, celebrates his goal with teammate Alejandro Pozuelo during extra time in an MLS soccer Eastern Conference first-round playoff match against D.C. United in Toronto on Saturday, Oct. 19, 2019. (Frank GunnThe Canadian Press via AP)

Toronto FC midfielder Nick DeLeon, right, celebrates his goal with teammate Alejandro Pozuelo during extra time in an MLS soccer Eastern Conference first-round playoff match against D.C. United in Toronto on Saturday, Oct. 19, 2019. (Frank GunnThe Canadian Press via AP)

Toronto FC midfielder Jonathan Osorio (21) celebrates his goal in extra time against D.C. United during an MLS soccer Eastern Conference first-round playoff match in Toronto on Saturday, Oct. 19, 2019. (Frank GunnThe Canadian Press via AP)

Toronto FC midfielder Jonathan Osorio (21) celebrates his goal in extra time against D.C. United during an MLS soccer Eastern Conference first-round playoff match in Toronto on Saturday, Oct. 19, 2019. (Frank GunnThe Canadian Press via AP)