John 19:24 NIV

24 "Let's not tear it," they said to one another. "Let's decide by lot who will get it." This happened that the scripture might be fulfilled1 which said, "They divided my garments among them and cast lots for my clothing."a2 So this is what the soldiers did.

References for John 19:24