NEW YORK, N.Y. - Jeff Petry is growing comfortable with the Montreal Canadiens.

Just ask him.

"Having a full camp and starting the season off with the team has helped me get to know everybody (and) to get to know the system," Petry said after his first two-goal game helped the Montreal Canadiens beat the New York Islanders 5-3 on Friday night in Carey Price's return from a lower-body injury.

Montreal acquired Petry from the Edmonton Oilers on Mar. 2 for two draft picks and signed the defenceman to a six-year, $33 million extension in June.

"He was unbelievable," Canadiens coach Michel Therrien said. "Not only offensively, but defensively he was really sharp."

Price, the NHL's reigning MVP and Vezina Trophy winner, had missed eight games. He made 33 saves to help Montreal win for the second time in three games.

"When you're out of action for a while, it takes time to catch up," Price said. "It's a good league and (if) you're out of action for three weeks, it's going to cost you a little bit."

Tomas Fleischmann, Nathan Beaulieu and Brendan Gallagher also scored, and the Canadiens improved to 15-4-2. Montreal's 32 points are tied with Dallas for most in the NHL.

"We're always in games," Petry said. "We're always (going to) compete and get wins."

Despite two goals from Brock Nelson, New York fell to 10-7-3. The loss snapped the Islanders' two-game winning streak.

Travis Hamonic added a goal for New York.

Montreal won the first two games of the regular-season series against New York. The teams will meet Sunday in Montreal for the third and final time this season.

"It will be the third time in a few weeks playing these guys," Kyle Okposo said. "We owe them."

It didn't take long for the Canadiens to get comfortable in their first game at the Barclays Center — they led 3-1 at the first intermission.

Petry opened the scoring at 2:52 with his second of the season. After pinching down to the low slot, he found the rebound of Brian Flynn's shot that had ricocheted off the cross bar and tapped it in.

Nelson scored about 9 minutes later with his seventh of the season, and his fourth in four straight games, by shoving a rebound through Price. Therrien used his coach's challenge to have the goal reviewed, and the ruling on the ice was upheld.

The deadlock lasted just 35 seconds. Fleischmann put the Canadiens ahead with his sixth of the season on a shot from the right circle. The sequence began when Frans Nielsen committed a neutral-zone turnover, and then went to the bench as Montreal counterattacked.

Beaulieu increased the lead to 3-1 with 1:43 left in the period.

The Canadiens scored all three of their first-period goals on 11 shots and, in the process, chased Halak from the game. New York coach Jack Capuano replaced Jaroslav Halak with Thomas Griess before the start of the second period.

"It was crucial for us to have such a great start," Therrien said. "We capitalized on our chances."

Halak finished with eight saves. Griess made 15.

"After the first we had to get a little bit of a spark from our team," Capuano said. "It wasn't all (Halak's) fault. He's going to have games like that when maybe you're not feeling it but our goalies have been there for us."

New York sliced the deficit to 3-2 just 39 seconds into the second period on Hamonic's first goal of the season. But Petry's power-play goal at 14:49 restored Montreal's two-goal lead.

Nelson cut Montreal's lead to 4-3 with his second of the game 7:25 into the third period. Gallagher's empty-net goal with 19 seconds left in the game ended the scoring.

New York outshot Montreal 36-28, and out-attempted the Canadiens 62-50.

"We had some chances," John Tavares said. "But you just can't put yourselves in a hole like that.

"They seemed like they were just a little sharper, a little crisper, a little bit more on their toes early and it seemed to take us a while to get going. We were behind the 8-ball at that point."

NOTES: This game was the first for Hamonic after it was revealed he had asked general manager Garth Snow to be traded. Following practice at the Islanders' Syosset, New York, training facility Thursday, Hamonic confirmed Sportsnet and TSN reports that he had requested a trade. "This is a personal family matter of mine that I hold dear to my heart," Hamonic said Thursday. "That's as far as I'm going to go." ... New York scratched Jean-Francois Berube, Adam Pelech and Taylor Beck. ... Torrey Mitchell and Jared Tinordi were Montreal's listed scratches. Therrien said Mitchell will not play this weekend as he is recovering from an injury. ... The announced attendance was 15,171.