who had him guarded while everyone waited for the LORD to tell them what to do.
This is the way God wants it done. You won't be under nearly as much stress, and everyone else will return home feeling satisfied.
Finally, the LORD said to Moses:
But no one knew what to do with him, so he was not allowed to leave.
Moses asked the LORD what should be done,
Moses said, “Wait here while I go into the sacred tent and find out what the LORD says about this.”