Then released he Barabbas unto them: and when he had scourged Jesus, he delivered him to be crucified.
So Pilate released Barabbas to them. But he had Jesus flogged, and handed Him over to be crucified.
Read Matthew 27