The soldiers said to one another, "Let's not tear it; let's throw dice to see who will get it." This happened in order to make the scripture come true: 1 "They divided my clothes among themselves and gambled for my robe." And this is what the soldiers did.
References for John 19:24
19.24 Ps 22.18.