LONDON — Buckingham Palace announced Thursday that Prince Philip, the 95-year-old husband of Queen Elizabeth II, will retire from public life starting in the fall.

“Prince Philip will attend previously scheduled engagements between now and August, both individually and accompanying The Queen,” a Buckingham Palace news release issued following a night of frenzied speculation prompted by emergency meetings by palace staff said.

“Thereafter, the Duke will not be accepting new invitations for visits and engagements, although he may still choose to attend certain public events from time to time,” it continued.

The announcement said that the prince, also known as the Duke of Edinburgh, had “the full support of The Queen.”

It added that Britain’s longest-reigning monarch, who turned 91 last month, “will continue to carry out a full program of official engagements.”

The prince, who has been attending ribbon-cuttings, state banquets and other high-ceremony events on behalf of the royal family for more than half a century, has long been expected to curtail his role as his health has gradually declined.

Thursday’s announcement came hours after news of an emergency all-staff meeting at Buckingham Palace leaked, prompting a flurry of unfounded speculation that one of the royal family’s most senior members had died.

The hashtag #BuckinghamPalace trended worldwide on Twitter. The Sun, the mass-market British tabloid, even accidentally published online news that Philip had died — only to retract it minutes later.

“Prince Philip dead at 95, how did the Duke of Edinburgh die, etc etc,” ran the headline.

The queen is generally believed to be in good health, though a “heavy cold” over Christmas last winter kept her away from her usual church attendance.

Philip, who turns 96 next month, has suffered a variety of ailments in recent years.

The queen and the prince have kept up heavy schedules of royal engagements well into old age.

Ahead of his 90th birthday, Philip gave an interview to the BBC saying he was scaling back.

“I reckon I’ve done my bit,” Prince Philip said. “I want to enjoy myself for a bit now, with less responsibility, less frantic rushing about, less preparation, less trying to think of something to say. On top of that, memory is going, I can’t remember names and things. So I’m just sort of winding down.”

On Wednesday, the queen met with Prime Minister Theresa May to discuss the country’s upcoming election, in June. And Prince Philip appeared the same day at the Lords Cricket Ground to open a new grandstand.

The queen still attends roughly 300 official events annually.

But lately she has been cutting back, delegating more of her duties to Prince Charles — the next in line to the throne — as well as other members of the royal household.

In December, the palace announced she was stepping down as the patron of more than 20 organizations. But she is still the patron of more than 600 organizations.

The prince leads or is a member of 780 organizations, though Buckingham Palace said Thursday he “will no longer play an active role.”

Expert royal watchers dismissed speculation that the queen would abdicate. She famously declared on her 21st birthday, in 1947, “that my whole life, whether it be long or short, shall be devoted to your service and the service of our great imperial family to which we all belong.”