Brock Nelson and the Islanders got down to the final hours, but the 23-year-old forward agreed to a three-year, $7.5 million deal on the eve of the team's training camp Wednesday night.

Nelson needed to be signed by the time players started reporting for physicals at 7 a.m. this morning or else he would not have played for the Islanders this season, per owner Charles Wang's team rule.

Ron Salcer, Nelson's agent, told Newsday on Monday that he and Isles general manager Garth Snow hadn't spoken in six weeks, fueling anxiety that Nelson might hold out and throw a wrench in the team's plans for 2015-16.

But the two sides agreed to a deal around 9:30 Wednesday night that keeps Nelson, who scored 20 goals last season, in the fold and paid comparatively well for a young player on his second contract.

Nelson had rejected his one-year qualifying offer in July, a risky move given that he had no arbitration rights this offseason and thus little leverage to negotiate.

The Isles had offered a two-year deal for under $3 million total several weeks ago and didn't budge until Wednesday night, when another year and a decent amount of money were added to offset what would have been the start of a lucrative deal following the 2016-17 season.

advertisement | advertise on newsday

The Islanders take the ice for their first camp session on Friday, then play their first preseason game on Monday against the Flyers at Barclays Center.

The regular season opens in Brooklyn against the defending champion Blackhawks on Oct. 9.