WARNING: The following article contains spoilers for the second episode of the eighth season of Game of Thrones, "Knight of the Seven Kingdoms."

Set in the final hours before the Night King and his army arrive at Winterfell, the newest episode of Game of Thrones gave most of the cast assembled to fight him some final moments of anxious peace. But amidst the character beats and flashes of closure, the episode also includes an incredibly sly reference to the original A Song of Ice and Fire books, as well as a major prophecy within the series.

The song that Podrick sings in the episode, "Jenny's Song," has a deeper meaning in the books. While it's never appeared in full, the song could actually have a subtle connection with the prophecy of Azor Ahai, the legend of the Prince Who Was Promised, which has been referenced frequently in the series. The choice to feature "Jenny's Song" here may be a clue that the prophecy will come back to play a role in the climax of the fantasy series.

RELATED: Game of Thrones: Daenerys Finally Shows Her True Colors

The Prince That Was Promised

Game of Thrones Melisandre

The prophecy about Azor Ahai has been frequently referenced on the show, primarily through the Red Priestess, Melisandre. She was first appeared in Season 2, introducing the idea that Stannis Baratheon was the prophesied hero.

The song references the legend of Azor Ahai, an ancient warrior prince who led the First Men during the last Long Night and helped defeat the White Walkers alongside the Children of the Forest. The hero forged a magical flaming sword called Lightbringer, but he was forced to sacrifice his beloved wife to receive that power. The prophecy suggests the same fate will befall the second coming of Azor Ahai, who will return as The Prince That Was Promised, reborn as a new hero.

RELATED: Game Of Thrones Resurrects A Major Lannister Family Arc

The prophecy has a real power within Game of Thrones, being modified and reexamined over the series to reflect other potential heirs to the title. Jon Snow and Daenerys Targaryen have both been floated as possible new incarnations of the hero now that Stannis is gone. The return of the White Walkers would prompt such a reincarnation of the hero, and it has been the mission of the Red Priestess to find this person.

Ghost Of High Heart

Prophecy ends up being a much more common occurrence in the books. In A Storm of Swords (the third entry in the A Song of Ice and Fire series), Arya and the Brotherhood Without Banners come to a mysterious woman known as the ghost of High Heart to hear her tell stories of the future.

She predicts events like the Red Wedding (where many of the Starks are betrayed and murdered), the Purple Wedding (where Joffrey is poisoned) and the death of Balon Greyjoy (at the hands of his brother Euron). When she sees Arya, she even makes a strange and haunting prediction about what will become of the young Stark.

NEXT PAGE: The Ghost of High Heart Hasn't Appeared in the Show, But Her Prophecy Lives On

Although the ghost of High Heart hasn't made an appearance in the HBO series, some of her prophecy did. But in the show this duty fell on Melisandre, who crossed paths with Arya and the Brotherhood Without Banners and made the prediction about Arya. Melisandre forces the Brotherhood to turn over Gendry as she makes her prophecies, but the ghost of High Heart only requests a song as her price. She only ever asks to hear "my Jenny's song."

Game of Thrones Season 8 Episode 2

The Jenny from the song is actually a deep cut reference to Jenny of Oldstones, a figure from the ancient lore of Westeros. She was a common woman who married Duncan Targaryen, a distant ancestor of Daenerys. He renounced his engagement to a princess of the Baratheon family and married Jenny instead, prompting a minor civil war in the Seven Kingdoms.

During the fifth book in the series (A Dance With Dragons), it is revealed that Jenny was also close friends to a woods witch. While some merely assumed her to be a dwarf, Jenny insisted she was one of the immortal Children of the Forest.

RELATED: Game Of Thrones: Is Cersei Lannister Still Pregnant?

This tiny woman was ultimately the one who first foretold the return of the Prince Who Was Promised in the court, and that the hero would have a connection to the Targaryen family. This small woman also heavily resembled the ghost of High Heart, which would make sense if she was one of the Children of the Forest.

What It All Means

Game of Thrones Season 8 Episode 3

Only a single line of Jenny's Song ever appeared in the original books, coming up during the interaction between Arya and the ghost of High Heart. The song was actually formally written out for the HBO series.

“The song is in George’s [R.R. Martin] books, at least the first verse is,” executive producer David Benioff explained to Making Game of Thrones. “We added some lyrics and Ramin [Djawadi, the show’s composer] came up with the music for it.” The expanded lyrics of the song seem to hint at a great tragedy that left Jenny dancing "among ghosts," lamenting the life she had lost.

Duncan, most of his family and likely Jenny all died when another member of the Targaryens tried to jump start the return of dragons to the world. But she lived on in song. The connection between "Jenny's Song" and the prophecy of the Prince Who Was Promised suggests that Game of Thrones is heading to a dark resolution, one where a great romance will fall apart and the survivor will only ever want to return to happier times.

Considering that both Jon and Daenerys are Targaryens, either of them could be the Prince Who Was Promised, or the beloved that will need to be sacrificed. This could even be a subtle reminder to fans to remember that the prophecy connected to the song could play a role in the final episodes of the series.