Wayne Rooney has decided to retire after the next World Cup.