t is very possible that the vast compilation of books that is the OT was edited and re-edited hundreds of times, with passages edited, deleted or even added by,say, the Sanhedrin. In this case, what is described here is possible that never happened: The Sanhedrin(or whoever else) added it to 'scare' the Jews into proper observation of the Sabbath. That's only a theory, but it is a logical assumption. And now, you might say, how do you know what part of the OT is the word of God and what is man-made? Well, the same way as ever: Using your mind. I never accept truths just because they're written, I accept written things if they ring true to me. And so it is for me. I'm sure most Christians would not agree, but there you go.
However, the NT is full of these things as well. The two endings of Mark.
Mark 16:1 ~ 8 has the women of Jesus coming down to clean Jesus's body. They are told about Jesus's resurrection, which prompts them to flee and tell no one. There are several additional endings to Mark, but finally someone added Mark 9 ~ 20 at some point, where Jesus comes back later, finds the women and explains the passion to them
Anyways, the gospels all are pretty uniform until a point. By their own accounts, when Jesus was captured, everyone fled. The big question is, who was there to record what happened afterwards? The fact that only Jesus, the Jews and the Romans were there for a lot of this gives each writer a lot of wiggle room, since none of those parties are talking.(Well, maybe Jesus). It seems to me that the only likely conclusion is that after Jesus's betrayal by Judas, each writer inserted his or her own spin on the story and filled in things that they could not have known in a way to support their own conclusions about Jesus. The whole of the story is suspect and the fact that Christians try to present the Easter story as one full consistent story is verging on falsehood, since the gospels are inconstant to the point where creating one story that agrees with them all is not possible. The ending of Mark has none of Jesus's followers believing in the resurrection until after He goes back and visits them. And He has to keep coming back, because no one believes it. It's completely different from the 100 foot angels and Jesus so tall you can't see his head greeting everyone and no one seems afraid at all about towering godly figures in Jon.