Background info on "Biogenesis"
Special thanks to site visitor Maria-Venetia for submitting this information.
Amor Fati is loosely based on Nikos Kazantzakis' book "O Teleutaios Peirasmos".
"The idea behind Mulder's dream sequences were largely borrowed from the last 30 minutes of the 1988 film "The Last Temptation of Christ" (based on the Nikos Kazantzakis book of the same name).
In the movie, we see Christ saved from the cross at the last minute and allowed to lead a normal life. He gets married, has kids, and leads a long, normal life. As Jesus is dying of old age, he is visited by his supposedly-dead best friend Judas, who calls Jesus a traitor and shows him that Jerusalem is burning because Jesus did not die for our sins. Jesus then snaps back to reality where he is indeed dying on the cross.
As you can tell, the X-Files episode is nearly identical, with Mulder "saved" by the Cancerman, allowed to have a normal life where he marries and has children, where he is about to die of old age when visited by his supposedly-dead best friend Scully who calls him a traitor and shows him that the world is burning because he did not complete his quest, and he snaps back to reality where he awakes upon an X-shaped table"!