Dan Simmons
Book 3 of Hyperion Cantos
Raul Endymion, sentenced to orbit the quarantined world of Armaghast until his death, comforts himself by writing about Aenea, a mystical child he was appointed to guard who grew to be the woman he loved.