January 5, 2023 | 6:02pm

Prince Harry reveals the final words he whispered to his grandmother, the late Queen Elizabeth II, upon arriving at her deathbed hours after her passing last September.

In his controversial memoir, “Spare,” Harry says he told his late grandmother in a whisper that he “hoped she would be happy” and that she would be with his grandfather, Prince Philip, who had died a year prior at age 99.

Harry also writes in the book, which comes out Jan. 10, that he told her he “admired her for having fulfilled her duties until the very end,” referencing her attendance at the Queen’s Platinum Jubilee celebrations that summer.

The Duke of Sussex continues, writing that he walked out of his late grandmother’s room at Balmoral in Scotland and called Markle to let her know he had arrived safely.

Prince Harry revealed what he whispered to Queen Elizabeth II after he arrived hours after she died.
Stuart Wallace/Shutterstock

Prince Harry notably arrived at Balmoral Castle hours after the Queen had died at the age of 96 on Sept. 8.

Page Six exclusively reported at the time that the red-headed royal had learned of his granny’s death from the news rather than from any family members or palace officials.

Harry told her that he hoped she was happy.
Getty Images

Harry and Markle had been in Germany promoting the Invictus Games when he heard her health was failing and rushed to be by her side. But Harry arrived too late and didn’t get to say his final goodbyes to the Queen.

He did, however, attend the 10-day period of mourning for the Queen, accompanied by his wife. After her death, Harry and Markle publicly reunited with William and Middleton for the first time since March of that year to pay tribute to the Queen outside Windsor Castle.

Harry learned of the Queen’s death from the news.
Getty Images

At the time, we were told it was William who extended the invite to his estranged brother and wife.

Inside Harry’s new memoir

“We are all very grateful — both sides putting all things aside for the Queen,” a royal source exclusively told Page Six.

Tensions have been high between the brothers since Harry and Markle exited the royal family in 2020 and moved to California, where they now reside with their two kids, Archie, 3, and Lilibet, 1.

While their reunion seemed to present a glimmer of hope for reconciliation between the two, Markle and Harry have since given several interviews about William and other members of the royal family that leave little room for repair.

Harry has made several claims in his new memoir including accusations that William physically attacked him after they got into an argument over Markle. He claimed the Prince and Princess of Wales played a role in his decision to wear a Nazi uniform to a costume party in 2005. He also referred to William as his “beloved brother and archnemesis.”

Harry also went after his dad, King Charles III, in his book, saying that the reigning monarch told his mother, Princes Diana, on the day he was born, “Now you’ve given me an heir and a spare —my work is done.”

Charles, however, maintains that he has tried to make amends with his younger son. Harry and Markle arereportedly invited to King Charles’ coronation, but the Duke hasdeclined to confirm if they will be in attendance.

The palace told Page Six it would not be commenting on any allegations in the tome.