Silence in the Library slightly touched upon River and the Doctor's future interactions, as River speaks of "the future you" suggesting she and the Doctor would know of eachother well into his future adventures.
Hers examples of the doctors future: When River Song goes through her diary to check where the Doctor is in his timeline, she mentions "The Crash of the Byzantium". (TV: The Time of Angels/Flesh and Stone)
Mr Lux says that River and the Doctor are bickering away like an old married couple. (TV: The Wedding of River Song)
The Doctor and River's final adventure and their date together on Darillium are shown in The Husbands of River Song. This story happens shortly after the date on Darillium.
Forest of the Dead has major impact on the mythos of Doctor Who was its depiction of the death of River Song. This narrative end point would be respected in future series that told River Song's out-of-sequence story.
after he is knocked out He wakes up, finding himself handcuffed to the wall. River has hooked her own mind up to the computer, planning to carry out the plan in his place. He tries desperately to persuade River to let him do this. He remind her that she whispered his real name into his ear, which he could only tell someone for one reason... She refuses, and sadly notes that during all the time they shared and will share together, he always knew this is where and when she dies. While he insists that the future can be changed, she tells him not to change one moment of what happens between them even though it leads to this and he will see her again. She links in when the countdown reaches zero and dies, as the Doctor looks on.
then later The Doctor and Donna briefly muse over River Song's diary, as it contains details of her life and their future. Ultimately, they decide not to look in it, and leave it behind on a shelf along with the sonic screwdriver his future self gave her.
Suddenly, the Doctor comes running back. He realises that since he knew River's fate all along, his future self would have had years to think of a way to save her. He knows that he wouldn't just give her a sonic screwdriver without a good reason. Opening it, he finds that it contains a hidden neural relay. As with the data ghosts, her consciousness has been saved there. However, it is fading. The Doctor takes River for "one last run", as he sprints back to the core. He uploads River's data ghost into the Library's computer, as the face of Charlotte looks on and smiles.
River mentions the Singing Towers of Darillium as her last night with the Doctor's future self. The Twelfth Doctor, after the Eleventh Doctor had put off this date for as long as possible (HOMEVID: Last Night), takes River there after a final adventure with her. By that point, River saw signs of her adventures coming to an end as her diary was almost full and the Doctor would know how many pages she'd need and she'd heard rumors about their date at Darillium. (TV: The Husbands of River Song)
The Husbands of River Song showed the Twelfth Doctor's first encounter with River. For River, this was the final adventure with the Doctor before she met her demise in the two-part television story Silence in the Library / Forest of the Dead. It showed the Doctor turning up on River's doorstep with a new haircut and a suit, their night on Darillium to see the Singing Towers, and the Doctor giving River his sonic screwdriver, all of which had been previously mentioned by River in the character's debut story.
The Doctor gives River a present; the sonic screwdriver she will use in the library. As the pair admire the Singing Towers, River notices the Doctor is crying, something he blames on having wind in his eyes. River reveals that her diary is nearly full, and asks whether the stories that this will be their final night together are true, to which the Doctor only responds by saying, "Spoilers": after knowing River for so long he had finally caught up with her in his timeline, and can't bring himself to reveal that this would indeed be their final night together before River travels to the Library and meets his Tenth incarnation, resulting in her dying.
The Doctor mentions he had a "new haircut", is in his "best suit" (though River disapproves of it) and is made to turn up on River's "doorstep". He is later seen in a suit at Darillium (which River really does finds nice), all in line with what she tells the Tenth Doctor. (TV: Forest of the Dead)