Exodus 16:27 NIV
27 Nevertheless, some of the people went out on the seventh day to gather it, but they found none. 28 Then the Lord said to Moses, “How long will you[c] refuse to keep my commands and my instructions?
In the above text we find some people who went to collect manna after clearly being instructed not to do so.There is no record of them being punished for violating the Sabbath law.
But later another man violated the Sabbath law and was punished
Numbers 15:33 NIV
33 Those who found him gathering wood brought him to Moses and Aaron and the whole assembly, 34 and they kept him in custody, because it was not clear what should be done to him. 35 Then the Lord said to Moses, “The man must die. The whole assembly must stone him outside the camp.” 36 So the assembly took him outside the camp and stoned him to death, as the Lord commanded Moses.
What was the difference between these violations?