LONDON -- After winning two Grand Slam titles and an Olympic gold medal, Andy Murray has been given the royal seal of approval.

Murray received his Officer of the Order of the British Empire medal from Prince William on Thursday. He was awarded the distinction in Queen Elizabeth II's New Year's honors list after his victories at the U.S. Open and London Olympics in 2012.

The Scot then won Wimbledon three months ago.

He nearly didn't make it to the ceremony, though.

Hours before heading to Buckingham Palace, Murray tweeted: "In the middle of a drug test hahaha I'm goin to be late!!"

Murray, who is out of action after undergoing season-ending back surgery, attended the ceremony with his girlfriend and parents and spoke to Prince William for about a minute while receiving the honor.

"He just asked me about my surgery and asked me how I had been since Wimbledon," said Murray, who added that he would be back training in four weeks.

Murray also revealed that Prince William's wife, Kate, wrote a letter to him after Wimbledon.

"I told him her handwriting is fantastic," Murray said.