A wartime alert will be performed by buglers at the Duke of Edinburgh’s funeral.
Action Stations – which is sounded on naval warships to signal all hands must go to battle stations – will be played at Prince Philip’s specific request.
The alert is a tradition sometimes associated with naval funerals, and the move will honour Philip’s active service in the Royal Navy during the Second World War.
In addition, the Last Post will be played to signify “a soldier has gone to his final rest”.
A senior Palace official said: “Action Stations is a naval tradition and it is an announcement that would be made on a naval warship to signify that all hands, all those serving, on that warship should go into battle stations.”
The duke wanted the call to resound around the large 15th century St George’s Chapel as his family gathered for his ceremonial royal farewell on Saturday.
A Palace spokesman said: “I think it just goes to show the level of detail that the duke went into around his own funeral service.
“It is a fitting testimony to remind many people who might not realise that the duke saw active service in the Second World War aboard a ship in the Royal Navy.”
The official added: “The Last Post bugle call signifies the end of the day’s activities, or, on this occasion, that a soldier has gone to his final rest.”
The duke, who died on Friday aged 99, was mentioned in dispatches for his service during the war.
He was a midshipman aboard HMS Valiant off the south coast of Greece when he earned his honourable citation.
The then young naval officer was praised for his actions in the decisive Battle of Cape Matapan against the Italian fleet in March 1941.
The future Duke of Edinburgh had been in control of the searchlights as the ship battled an Italian cruiser when he saw an unexpected second enemy vessel nearby.
Philip was at 21 one of the youngest officers in the Royal Navy to be made First Lieutenant and second-in-command of a ship, the destroyer escort HMS Wallace of the Rosyth Escort Force.
In July 1943, the destroyer was dispatched to the Mediterranean and provided cover for the Canadian beachhead of the Allied landings in Sicily.
Philip also served as First Lieutenant on the destroyer HMS Whelp in the Pacific, and helped rescue two airmen in 1945.
Had the duke not married Princess Elizabeth, some maintain that he would have been First Sea Lord, the professional head of the Royal Navy.
In a rare interview, he spoke of his fascination with the sea in 1998 to mark his 50 years as trustee of the National Maritime Museum.
Referring to it as “an extraordinary master or mistress”, he said: “It has such extraordinary moods that sometimes you feel this is the only sort of life and 10 minutes later you’re praying for death.”
Action Stations will be sounded towards the end of service.
The Dean of Windsor will give the Commendation as the coffin is lowered into the Royal Vault, beneath the Quire, using a mechanical motor.
This will be followed by the Garter Principal Majesty of Arms proclaiming Philip’s Styles and Titles from the Sanctuary.
A Lament will then be played by a pipe major of the Royal Regiment of Scotland, before the Last Post is sounded by Buglers of the Royal Marines from the west end of the Nave.
After a period of silence, the Reveille, which is used to wake the military at daybreak, will be sounded by the State Trumpeters of the Household Cavalry from the west end of the Nave.
The Buglers of the Royal Marines will sound Action Stations before the Archbishop of Canterbury’s Blessing and the singing of the National Anthem by only the four members of the choir.