NEWARK - The Rangers beat the Devils, 4-2, Tuesday night to win the Presidents' Trophy for the first time since the 1993-94 season, when they won their last Stanley Cup. They clinched home ice throughout the playoffs.

The outcome, though, was in doubt until Carl Hagelin's empty-netter with 1:48 to play sealed the Rangers' fifth straight win.

For the Rangers (52-21-7, 111 points), what remains uncertain is who their first-round opponent will be. They host Ottawa on Thursday night and visit Washington on Saturday.

"More than any other year, I feel that everybody's confident within their role. That's the biggest thing," Rangers captain Ryan McDonagh said. "It's tough to find a group that is willing to put a lot of the personal stuff aside and put the betterment of the team first. We've got a great mix of veteran guys who've been around and won before and that attitude rubs off through the lineup."

It is the third time that an Alain Vigneault-coached team has won the Presidents' Trophy.

"I'm very proud of our group, but we all know we're going to be judged by what we do in the playoffs," Vigneault said.

Marc Staal said: "No doubt that [finishing first] gives you confidence . . . [but] everyone knows that winning games in the playoffs is 10 times harder than winning in the regular season. It is Season Two."

The Rangers' fourth line provided a 3-1 lead with 9:19 left, when Dominic Moore's sharp-angle shot was tipped past Corey Schneider by James Sheppard, a healthy scratch for the last three games who dressed because Mats Zuccarello was scratched with body soreness.

But the Devils would not go away, and with 8:28 left, Steve Bernier managed to get a bouncer past Cam Talbot (19 saves) on a wraparound to make it a one-goal game again.

Starting the third period, the Rangers had outshot the Devils 33-10, and had 1:05 left on a carry-over power play. Rick Nash rang a blast off the crossbar, but the Blueshirts were 1-for-7 with the man-advantage.

At 10:21, Jacob Josefson cleared the puck over the glass, and on the Rangers' fifth power play, Schneider made an athletic save on McDonagh. When Josefson went back to the box for a hold at 15:36, the sixth power play stalled and the seventh -- the fourth straight -- came with 55.7 seconds to play in the period.

The power-play futility started early. The Rangers had a five-on-three for 1:27 after Adam Larsson elbowed Martin St. Louis at 2:14 of the first. The Rangers had one shot on Schneider on the five-on-three.

But the Rangers did score twice in the period. At 13:45, Hagelin pressured Eric Gelinas behind the cage, and Kevin Hayes swept in on the loose puck and beat Schneider. McDonagh provided a 2-0 lead on a power play, as his shot through a Nash screen eluded Schneider at 14:32.

The Devils trimmed the lead to 2-1 on a power play when Patrik Elias converted Bernier's feed in the low slot.