It's fair to say the 2017 season has not been one to remember for Andy Murray.

He has struggled with injury throughout, and only won one ATP tour title, the Dubai Tennis Championships in March with a straight sets victory over Fernando Verdasco.

The Scot struggled to make an impact on the Grand Slams, only making it past the quarter-final stage at Roland Garros, where he was beaten by Stan Wawrinka in the semi-final, and missed the US Open thanks to a hip injury sustained before and aggravated at Wimbledon.

Having not played since his defeat to Sam Querrey in the quarter-finals at SW19, Murray has seen his world ranking fall to 16th, his lowest position since 2008.

It's some fall for the three-time grand slam champion, who actually finished 2016 at the top of the ATP rankings.

Roger Federer knows a thing or two about recovering from injury, having taken the same decision last year as Andy Murray has this, and missed the US Open by ending his season early.

The Swiss also missed Roland Garros this season to focus on the other grand slams, and he won the Australian Open and Wimbledon to take him to a record 19 major titles.

Murray is returning to the court to face Federer at his charity event in Glasgow, titled Andy Murray Live.

However, he has no plans to return competitively until Brisbane in 2018, where he will be trying to build his fitness and condition ahead of the Australian Open.

And Federer has advised him not to rush his return to the court, adding that Murray should be completely healthy when he does come back.

"My big piece of advice is just get healthy," he said at a press conference ahead of the event in Scotland.

"That’s it. Take your time, however long it takes. When you get back you want to be at 100% otherwise it feels like you can’t beat the best, can’t win the big tournaments and it’s frustrating.

"It’s wise and worthwhile to take the extra, week, month, whatever it may be.

Federer added that Murray needs to look after his body in order to prolong his career.

At 30 years old, the Scot isn't close to retirement as Federer has proved this term, winning two grand slams at the age of 35.

"I’m sure Andy has a lot of years left so there shouldn’t be a hurry but as a professional athlete, you always want to come back as quickly as possible and you need to have goals but sometimes they need to be postponed," he continued.

"It’s nice to see you back on the court and I’m sure we’ll have a great match tonight – I’m excited to see how you’re doing. I’ve missed you, man."