Is there any apocryphal gospel where someone else is crucified? In Islam Jesus is not crucified but instead of Him someone else is crucified, and Jesus went directly to heaven. 

Moslims told me that Mohammed received his information about Jesus from the angel Gabriel. But in Mohammeds' days he probably knew or heared about gospels telling another story of Jesus like He wasn't crucified. But is there a gospel known where that is the case?
There are various Gnostic Knowledge Gospels where Jesus wasn't crucified - I won't list them all but here are the most popular. 

Gnostic Apocalypse of Peter


  He whom you saw on the tree, glad and laughing, this is the living
  Jesus. But this one into whose hands and feet they drive the nails is
  his fleshly part, which is the substitute being put to shame, the one
  who came into being in his likeness. But look at him and me.


The Second Treatise of The Great Seth, 56.6-19 in NHL 332


  It was another...who drank the gall and the vinegar
  (on the cross); it was not I... it was another Simon, who bore the
  cross on his shoulder. It was another upon whom they placed the crown
  of thorns. But I was rejoicing in the height (the hills) over... their
  error. And I was laughing at their ignorance.