" Still, the gospels are not biographies but apologetic documents, composed to persuade, to inspire, and to convince. (John is explicit about this: “These are written that you may believe…and that believing you may have life in his name.”) The gospels must be read critically, with a sense of historical context. Which is to say, the Last Words that we are about to encounter may or may not have actually been spoken by Jesus. What is certain is that each of the evangelists thought it important for his audience to believe that Jesus had said them. "
― Jon Meacham , The Hope of Glory: Reflections on the Last Words of Jesus from the Cross