When they had crucified Jesus

Then the soldiers, when they had crucified Jesus, took His garments, and made four parts, to every soldier a part; and also His coat: now the coat was without seam, woven from the top throughout.
They said therefore among themselves, “Let us not rend it, but cast lots for it, whose it shall be:” that the Scripture might be fulfilled, which saith, “They parted My raiment among them, and for My vesture they did cast lots.” These things therefore the soldiers did.   John 19:23-24