The Duke of Edinburgh has been discharged from hospital in time for his 91st birthday tomorrow after recovering from a bladder infection.
Prince Philip emerged from the King Edward VII Hospital in central London on Saturday morning in good spirits after spending five nights there being treated with antibiotics.
As he left, the Prince waved to well-wishers, shook hands with staff at the hospital and thanked them for their care.
When asked if he was feeling better, he nodded and quipped: “I wouldn’t be coming out otherwise.”
He is expected to celebrate his birthday privately on Sunday with the Queen and other members of the Royal Family at Windsor Castle.
Prince Philip was taken to hospital on Monday with a bladder infection, missing the final celebrations for the Queen's Diamond Jubilee.
The previous day he had braved the elements to take part in the Thames River Pageant.
Medical experts believe his condition may have been exacerbated by his attendance at the Thames Diamond Jubilee river pageant, where he and the Queen stood aboard the Royal Barge in cold and wet conditions for more than four hours.
Buckingham Palace said that Prince Philip would “continue his convalescence” at home, but could not confirm whether he will join the Queen in the coming weeks for a number of events to mark her Diamond Jubilee.
The couple have more than 20 engagements scheduled between now and mid-July, including five regional tours and a tour of Northern Ireland later this month.
On Monday, the King’s Troop Royal Horse Artillery will fire a 41-gun salute in London’s Hyde Park to mark Prince Philip’s birthday.
The Prince is next due to attend a garden party with the Queen at their Sandringham estate in Norfolk on Tuesday, followed by a two-day tour of the East Midlands on Wednesday and Thursday where they will be joined by the Duke and Duchess of Cambridge.
A spokesman for Buckingham Palace said: “Prince Philip has been released from hospital and continues to make good progress. He will continue his convalescence at home and will be spending the weekend privately.”
Princess Eugenie has spoken of how her grandmother had found celebrating the final two days of her Diamond Jubilee without her husband at her side as “testing”.
She said: “They are the most incredibly supportive couple to each other. Grandpa was unfortunately taken ill and for granny to come and do that alone was probably quite testing and I think he is her rock, really, and she is his.”
On Friday the Duke enjoyed the company of his grandsons the Duke of Cambridge and Prince Harry who paid a short, private visit.
William visited his grandfather while on leave from his RAF Search and Rescue duties.
Harry, meanwhile, was spending the week since the Diamond Jubilee celebrations on pre-deployment training at Wattisham in Suffolk.
The Princes, dressed in jeans and V-neck jumpers, left the hospital after 20 minutes without commenting.
Prince Philip had already been visited by the Queen, the Duke of York, the Earl and Countess of Wessex and their children, Louise and James.
Prince Andrew said on Wednesday his father was "mending very well".
Last December, Prince Philip underwent a successful procedure to clear a blocked coronary artery and was in hospital for four nights over Christmas.
Earlier this year, Prince Harry said the operation had given him “a new spurt of life”.