Read this passage and open each verse for the full verse feed and commentary tools.
23Then the soldiers, when they had crucified Jesus, took his garments and made four parts, to every soldier a part; and also the coat. Now the coat was without seam, woven from the top throughout. 24Then they said to one another, "Let`s not tear it, but cast lots for it, whose it will be," that the scripture might be fulfilled, which says, "They parted my garments among them, For my cloak they cast lots." Therefore the soldiers did these things.
John 19:23-24 (WEB)