No One Else Can Help Me

How could David write the words and activities that took place at the time of Jesus's crucifixion a thousand years earlier?