With the annual Sabbath now over, the women bought and prepared spices for anointing Jesus' body.
Mark 16:1 tells us, "And when the Sabbath was past, Mary Magdalene and Mary (the mother of James and Salome), bought sweet spices that they might come and anoint Him." Luke's account also describes how the women "prepared the spices and ointments" and then they "rested on the Sabbath day according to the commandment." (Luke 23.56) Thus, according to these two accounts, they bought the spices and prepared them after the Sabbath and yet before the Sabbath. There had to be two Sabbaths involved here with a day of preparation between them.
The weekly Sabbath begins at sunset Friday night. No work is to be done as commanded in the fourth commandment.