Andy Murray has written a heartfelt apology to Scottish tennis fans after opting to not play in Great Britain’s Davis Cup tie against Uzbekistan in Glasgow next week, in what was likely to be his last appearance playing in Scotland as a professional.

After being knocked out in the second round of US Open, Murray has decided to stay in the United States for further rehabilitation on his right hip as he continues to search for a way back to the top.

In a long message on his Instagram, Murray emphasised the many highlights of his participation in the competition, including the four ties he played in in 2015 when he led Britain to the title alongside his brother, Jamie.

US Open day eight Show all 17 1 /17 US Open day eight US Open day eight Roger Federer vs John Millman Roger Federer made a strong start to his fourth round tie against John Millman as he won the first set. Getty US Open day eight Roger Federer vs John Millman But Federer started making a number of mistakes, particularly on his drop-shots. AP US Open day eight Roger Federer vs John Millman Millman was able to fight back into the match and take the second set. Getty US Open day eight Roger Federer vs John Millman The end of the third set saw momentum swing in Millman's favour. AP US Open day eight Roger Federer vs John Millman Federer had never lost to a player ranked outside the top 50 at a Grand Slam before. Getty US Open day eight Roger Federer vs John Millman But the 20-time Grand Slam champion looked stumped as he slid towards defeat. Getty US Open day eight Roger Federer vs John Millman Even former president Bill Cllinton couldn't believe what he was seeing at the Arthur Ashe Stadium. Getty US Open day eight Roger Federer vs John Millman Eventually Federer lost in four sets and congratulated Millman on his victory. AFP/Getty US Open day eight Roger Federer vs John Millman The victory proved the biggest of Millman's career. AFP/Getty US Open day eight Roger Federer vs John Millman Roger Federer waves goodbye to the crowd after his fourth-round exit. Reuters US Open day eight Maria Sharapova vs Carla Suarez Navarro Maria Sharapova struggled as she was comprehensively beaten by Carla Suarez Navarro. Getty US Open day eight Maria Sharapova vs Carla Suarez Navarro Sharapova made 38 errors as she crashed out of the US Open in straight sets. AP US Open day eight Maria Sharapova vs Carla Suarez Navarro Carla Suarez Navarro will now play Madison Keys after defeating Sharapova. AFP/Getty US Open day eight Maria Sharapova vs Carla Suarez Navarro The Spaniard was ranked just two places below Sharapova. Reuters US Open day eight Maria Sharapova vs Carla Suarez Navarro Suarez Navarro handed Sharapova her first night defeat on Arthur Ashe Stadium. AP US Open day eight Madison Keys vs Dominika Cibulkova Madison Keys celebrates her US Open fourth-round victory over Dominika Cibulkova AP US Open day eight Naomi Osaka vs Aryna Sabalenka Naomi Osaka beat Aryna Sabalenka to reach the US Open quarter-finals AFP/Getty

"I just wanted to write a quick message to apologise to the British Davis cup team and all the fans who are coming to watch in Glasgow and support on TV,” he said.

"I have genuinely loved competing in this Davis cup format over the course of my career and have had some of the most memorable and special moments (the lob) of my career competing for my country.

"With this possibly being my last chance to compete in Scotland as a professional I really wanted to be there with team and found this decision emotionally quite challenging.”

Temperatures exceeded 36 degrees Celsius during the second-round encounter in New York (AP)

Murray wanted to participate in the doubles team, but agreed with the captain, Leon Smith, that it is best for him to take a break and focus on rebuilding his game and playing at his best.

"I had spoken to our captain, Leon, about possibly coming to just play doubles but having been recommended to take a couple of weeks off hitting to continue my reconditioning I didn't want to just show up not ready to perform to a high enough standard and ultimately let my teammates/country down.

"If I don't get the chance to compete in Scotland again I just want to say thank you so much to all the fans who have come along to watch and support the team over the years. You have created some incredible atmospheres for me and the team to play in and I will always remember that.