John
1Then Pilate therefore took Jesus, and scourged him.
2 And the soldiers platted a crown of thorns, and put it on his head, and they put on him a purple robe,
--
Mark
15 And so Pilate, willing to content the people, released Barabbas unto them, and delivered Jesus, when he had scourged him, to be crucified.
16 And the soldiers led him away into the hall, called Praetorium; and they call together the whole band.
17 And they clothed him with purple, and platted a crown of thorns, and put it about his head,
18 And began to salute him, Hail, King of the Jews!
19 And they smote him on the head with a reed, and did spit upon him, and bowing their knees worshipped him.
20 And when they had mocked him, they took off the purple from him, and put his own clothes on him, and led him out to crucify him.
--
Matthew
27 Then the soldiers of the governor took Jesus into the common hall, and gathered unto him the whole band of soldiers.
28 And they stripped him, and put on him a scarlet robe.
29 And when they had platted a crown of thorns, they put it upon his head, and a reed in his right hand: and they bowed the knee before him, and mocked him, saying, Hail, King of the Jews!
30 And they spit upon him, and took the reed, and smote him on the head.
31 And after that they had mocked him, they took the robe off from him, and put his own raiment on him, and led him away to crucify him.
---
Luke actually doesn't mention an ass beating