Raheem Sterling has signed a new contract with Manchester City to keep him with the Premier League champions until 2023.
The England star handed Pep Guardiola's side a timely boost ahead of Sunday's Manchester derby against United as he ended talk about his future by penning a new contract.
With the 23-year-old's previous deal set to expire in the summer, Sterling has now been handed a fresh deal at the Etihad that is reportedly worth around £300,000 a week.
Sterling has scored 23 goals as City won the Premier League last season, and has already scored seven times this season as he continues to improve under Guardiola.
"I'm delighted to sign. My development here has been incredible," said Sterling.
"I felt from the minute I got here it was the right choice for me. It's paid off and I'm really grateful.
"Every season you come in you want to do better than your previous season. You want to try and develop and get better.
"With the facilities we've got here there's no reason not to. With the coaching staff and the players we have in this team it's the perfect environment to develop and get better."
Contract talks between City and Sterling's representatives had been going on for some time and there were reports of sticking points during the process.
That led to speculation that Real Madrid had been alerted to his potential availability, but City were determined to retain the services of a player who has shone under the guidance of manager Pep Guardiola.
City director of football Txiki Begiristain added: "This is a significant moment for the club. Raheem has improved dramatically in the past two seasons and is now one of the Premier League's best attacking players. His statistics tell their own story.
(video no longer available)