Free agent outside linebacker Connor Barwin told FOX 26 Sports he has agreed to a deal with the Philadelphia Eagles.
"I just got off the phone with (Eagles head coach) Chip Kelly. It's done," Barwin said.
League sources confirm Barwin gets a six-year contract worth $36 million.
With incentives Barwin can earn as much as $40 million through the life of the contract.
"I'm very excited about having it over with," Barwin said. "It was a stressful couple of days. Had a great time in Houston.
"Nothing but good memories. I'm looking forward to the future and looking forward to playing for the Philadelphia Eagles."
The Texans took Barwin in the second round of the NFL Draft out of Cincinnati in 2009.
He started every game the past two seasons after switching from defensive end to outside linebacker.
Barwin had a break-out year in 2011 with 11.5 quarterback sacks, but he had only three sacks last season.
"It shows the Eagles have faith in me," Barwin said. "Now I have the responsibility to go and play up to those numbers."
Barwin leaves the Texans with a message for their fans and the team.
"Thank you," Barwin said. "It was an incredible four years here. I love the fans. They've been great to me. I appreciate all their support.
"I wish the Texans the best of luck, for not only my friends and the management, but also for this city."