LONDON — For decades, he has stood loyally at the side of Queen Elizabeth II and made thousands of solo appearances as well. He calls himself the world’s most experienced unveiler of plaques.

He has been eligible for a government pension since June 10, 1986, yet still soldiered on.

Now, at age 95, Prince Philip says he is retiring from royal duties.

The queen’s husband said Thursday he will carry out scheduled engagements for the next few months but won’t take on new ones starting in the fall.

His retirement announcement followed a night of frenzied speculation caused by news reports about an “emergency” palace meeting Thursday.

Buckingham Palace said Philip, also known as the Duke of Edinburgh, made the decision to retire with the full support of the queen.

Tall and always elegantly dressed, Philip is as famous for his occasional off-color gaffes and one-liners as he is for his devotion to the monarch, and he joked about his retirement at an Order of Merit reception at St. James’ Palace.

“I’m sorry to hear you’re standing down,” said 88-year-old mathematician Michael Atiyah said, using the British expression for retirement.

“Well, I can’t stand up much longer,” Philip replied. He walked with his head held high, despite his self-deprecating claim.

Harvey Oyer, a Florida attorney who was invited to a Buckingham Palace lunch reception, told The Associated Press that Philip looked remarkably well.

“The big takeaway is there was no indication that this was a farewell,” Oyer said. “He did not look unhealthy in any way. He was as spry and humorous and engaging as he has always been.”

Philip has made earlier concessions to age, announcing when he turned 90 in 2011 that he was “winding down” his official duties.

Since then, he’s had some serious health issues, including a blocked heart artery, and has been hospitalized several times.

There were no indications that Philip suffers from any new health problems.

The statement indicated Philip will carry out previously scheduled engagements between now and August.