Pavel Datsyuk has agreed to a three-year contract extension with the Red Wings, he wrote on Twitter on Tuesday morning.

“Signed 3 yr. extension. Detroit, glad to be here for 4 more yrs. Thanks to our fans, friends and Ilitch family,” read Datsyuk’s tweet.

Datsyuk’s agent, Gary Greenstin, met with Red Wings general manager Ken Holland Tuesday morning to wrap up contract details.

The 2013-14 season was to be the final year of a seven-year contract worth $46.9 million. It called for a $6.7 million salary in 2013-14.

Financial terms of the new deal were not immediately known. New contracts cannot be signed until July 5, the start of the NHL calendar.

Holland said Monday the two sides had been talking regularly in the past couple of weeks.

Datsyuk said after the playoffs ended he would like to finish his NHL career with the Red Wings.

"I would love to stay," said Datsyuk, 34, as the Red Wings cleaned out their lockers after a series defeat to Chicago. "Yeah, I hope we agree, and we sign a new deal. I hope we agree and I sign for more (years)."

At the time, Datsyuk downplayed his training camp comments about how enjoyable it was playing back in Russia during the NHL lockout.

"(Reporters) ask me and I just answered it's fun to be home (in Russia)," Datsyuk said. "But (I left) one home to come (to) another home. When you play too much here, it's nice to come home (to Russia)."

There has been speculation Datsyuk wanted to end his playing career in Russia's Kontinental Hockey League, where he played in the final months of 2012 until the lockout ended.

"This is my goal (to end his career in the KHL) but you never know how it goes," Datsyuk said. "I would love to finish (in the KHL), give back to my friends and fans in Russia (while) I hope I'll be in good shape.