MALMO, Sweden -- Buffalo Sabres defenceman Rasmus Ristolainen scored at 9:42 of overtime to give Finland its third world junior hockey title, 3-2 over Sweden on Sunday.
Ristolainen picked up the puck along the right boards, beat defenceman Robert Hagg as he cut in front of the goal and slid a backhander under goalie Oscar Dansk's right leg pad. Ristolainen has one goal in 19 games this season for Buffalo.
"Nobody trusted us to win, but we trusted," said Chicago prospect Teuvo Teravainen, the tournament scoring leader. "We knew we were going to be a good team and we had a chance to win this tournament. It's an awesome feeling right now."
Finland also won the under-20 event in 1987 in Czechoslovakia and 1998 at home in Helsinki.
Sweden's tied it at 2-2 on Christian Djoos' power-play goal with 9:07 left in the third period. Djoos beat goalie Juuse Saros with a slap shot through traffic from the high slot.
"We were playing in their zone the whole game," said Swedish captain Filip Forsberg, the Nashville forward selected the tournament MVP. "Obviously, it's hard to lose like this."
Finland's Era Lindell -- drafted by Dallas -- scored 28 seconds into the game, and Lucas Wallmark tied it on a power play at 7:53 of the second. Finland regained the lead 45 seconds later on Nashville draft pick Saku Maenalanen's goal.
Saros, also drafted by Nashville, made 35 saves, and Chicago Blackhawks prospect Teuvo Teravainen had three assists to help Finland hand Sweden its first loss in seven games in the tournament. Teravainen won the scoring title with 15 points on two goals and 13 assists, and Maenalanen topped the goals list with seven.
Forsberg was selected the tournament most valuable player. The Nashville forward had four goals and eight assists in seven games.
Earlier, Germany beat Norway 3-1 for a 2-1 victory in the best-of-three relegation series. Germany will remain in the competition next year in Montreal and Toronto, while Denmark will take Norway's spot in the 10-team event. Frederik Tiffels, Dominik Kahun and Patrik Klopper scored for Germany and Marvin Cupper made 34 saves.
"It's our goal to be a top-10 nation, and that's what we did today," said Leon Draisaitl, who had two assists. "It's going to be probably the greatest experience you'll ever have next year, playing in Toronto and Montreal."
The tournament drew 144,268 fans, breaking the European record of 139,680 set in 1998 in Finland. The overall record is 453,282 in Ottawa in 2009.