Wayne Rooney has decided to quit Manchester United after accepting that his Old Trafford career is coming to an end.

United’s record goalscorer is unhappy with a reduced role under Jose Mourinho and has told friends he is leaving after nearly 13 years at the club. He is determined to go on his own terms.

A source told Sportsmail: ‘The writing is on the wall for Wayne. He can see what’s happening. He’s playing less and believes he still has a lot to give. He won’t want to continue here like this.’

Wayne Rooney will quit Man United after accepting his time at the club is coming to an end

The Red Devils skipper is unhappy with his reduced role at Old Trafford under Jose Mourinho

The United captain has a £35million-a-year offer on the table to play in China, where the transfer window closes next Tuesday.

Mourinho refused to offer any guarantees that Rooney will stay, saying: ‘Of course I can’t guarantee. I cannot guarantee that I’m here next week, how can I guarantee that a player is here next season?

‘What I can guarantee is that if one day Wayne leaves the club it is not because I want him to leave.

‘I would never push a legend of this club to another destiny. You have to ask him if he sees himself staying in the club for the rest of his career or sees himself moving.

‘It is not a question for me because I am happy to have him. I was very open with you in the answer. I don’t want him to leave.’

Rooney has a £35m offer from China while their is interest from MLS and former club Everton

Ashley Young shares a joke with Rooney as the Red Devils prepared for their Saint-Etienne test

Sources close to Rooney insist it is unlikely that he will move to China before next week’s deadline.

He also has interest from Major League Soccer in America, while Everton are keen to re-sign him but his £230,000-a-week basic wage is prohibitive.

Rooney has been marginalised as Zlatan Ibrahimovic, Marcus Rashford and Anthony Martial contest the United forward roles. He has not started a Premier League game since December 17. Despite having 18 months left on his contract, with the option of a 12-month extension, Rooney accepts that it is time to leave.

And with United hoping to sign Antoine Griezmann from Atletico Madrid in the summer, a parting of the ways appears to be in the best interests of player and club.

He missed the last two games with an unspecified illness and what was vaguely described as a muscle injury. He trained with the squad at Carrington on Tuesday for the first time in a week, but did not travel with his team-mates for Wednesday's Europa League round-of-32 tie.