The Gospel of Barnabas · Chapter 215 Jesus taken up, Judas transformed. The substitution account is not unique to this text; its early Christian context:
Jesus Is Taken to Heaven and Judas Is Transformed
When the soldiers with Judas drew near to the place where Jesus was, Jesus heard the approach of many people, wherefore in fear he withdrew into the house. And the eleven were sleeping.
Then God, seeing the danger of his servant, commanded Gabriel, Michael, Rafael, and Uriel, his ministers, to take Jesus out of the world.
The holy angels came and took Jesus out by the window that looketh toward the South. They bare him and placed him in the third heaven in the company of angels blessing God for evermore.
When Judas and the soldiers approached, Jesus heard the sound of many people coming and withdrew into the house in fear. The eleven disciples were asleep.
Seeing the danger facing his servant, God commanded his ministers Gabriel, Michael, Rafael, and Uriel to take Jesus out of the world.
The holy angels came, took Jesus through the south-facing window, and carried him to the third heaven, where he was placed among angels who blessed God forever.
When the soldiers with Judas drew near to the place where Jesus was, Jesus heard the approach of many people, wherefore in fear he withdrew into the house. And the eleven were sleeping.
Then God, seeing the danger of his servant, commanded Gabriel, Michael, Rafael, and Uriel, his ministers, to take Jesus out of the world.
The holy angels came and took Jesus out by the window that looketh toward the South. They bare him and placed him in the third heaven in the company of angels blessing God for evermore.