And when they crucified Him, they divided His garments, casting lots for them to determine what every man should take. - Mark 15:24, NKJV
When Jesus finally arrived at the place of execution around nine o’clock in the morning, if His treatment followed standard procedure in those days, He was stripped of all His clothes. Possibly He was allowed to retain a loincloth.
Yet because Jesus was stripped “naked,” you and I can be clothed! The Bible tells us that all of our righteousness, including the very best things we ever do, are so permeated with sin and selfishness that they are like filthy rags in God’s sight (Isa. 64:6). But at the Cross, Jesus gave us His perfect, spotless robe of righteousness and took our filthy garments of sin in exchange (Phil. 3:9). On Judgment Day, you and I will be dressed in His righteousness before God because He wore the filthy garments of our sin. We will be clothed because He was stripped!
From Just Give Me Jesus