Nag Hammadi library
According to the First Revelation of James in the Nag Hammadi library, Jesus appeared to James after apparently being crucified and stated that another person had been inflicted in his place: