Buckingham Palace said Prince Philip will return to Windsor Castle to continue with his recovery.
The statement added that the Prince "would like to convey his appreciation" for the well-wishes he has received.
The husband of Queen Elizabeth waved to the media as he was driven away from King Edward VII's Hospital in central London.
Shawnee School District planning projects
Stults said from now on, there will be a police presence at both scheduled and unannounced fire drills at the district's schools. Dennis Filippone, who has served as acting superintendent this year, said he is looking forward to stability in the district.
Prince Philip waves as he leaves hospital.
Philip, who is best known for his mischievous sense of humour, forthright manner and off-colour jokes, formally retired from public life previous year but has attended some royal engagements since then.
The Duke of Edinburgh has had a successful hip replacement at the impressive age of 96.
A few hours later, Princess Anne was also photographed leaving the private hospital. He is progressing satisfactorily at this early stage. "He is comfortable and in good spirits". Prior to his surgery, Prince Philip skipped several major events that he was expected to attend, including Easter services.
Police investigate death of 7-month-old Kansas girl
Ian Jordan was involved in an accident on September 22, 1987, as he responded to a possible break-and-enter on Fort Street. Ole Jorgensen, the other responding officer and a close friend of Jordan's, suffered a serious leg injury in the crash.
Prince Philip attended his last official royal engagement in August 2017.
At the time, a royal spokesman said the duke had been experiencing some "trouble with his hip". "The order of the service was printed some weeks ago when it was hoped the duke would be able to take part", a royal source told US Weekly.
His daughter, Princess Anne - the Princess Royal, was the only royal visitor to the hospital, who had described him "on good form" after she visited her father yesterday.
Football Manager Touch launches on Switch today
Real World Scouting: Play the transfer market like never before with a realistic and immersive approach to scouting. Football Manager's acclaimed match engine and modernised match presentation help to bring your fixtures to life.