Exodus 35:3 Ye shall kindle no fire throughout your habitations upon the Sabbath day.
Exodus16:23 And he said unto them, This is that which the Lord hath said, To morrow is the rest of the holy Sabbath unto the Lord: bake that which ye will bake to day, and seethe that ye will seethe; and that which remaineth over lay up for you to be kept until the morning.
Numbers 15:32-35 And while the children of Israel were in the wilderness, they found a man gathering sticks upon the Sabbath day.
33 And they that found him gathering sticks brought him unto Moses and Aaron, and unto all the congregation.
34 And they put him in ward, because it was not declared what should be done to him.
35 And the Lord said unto Moses, The man shall be surely put to death: all the congregation shall stone him with stones without the camp.
This brother was put to death not for gathering sticks but because The Most High knew his heart, he knew the brother gathered sticks with the intent to kindle a fire for cooking.