And while the children of Israel were in the wilderness
According to Aben Ezra, in the wilderness of Sinai; for it is a common notion of the Jews, that though this fact is recorded here, yet was committed the first year the Israelites came out of Egypt, quickly after the giving the law of the sabbath: hence Jarchi remarks, that the Scripture speaks of this to the reproach of the Israelites, that they kept only the first sabbath, and on the second this man came and profaned it; but it seems rather to be in the wilderness of Paran where this fact was committed, after the business of the spies and the discomfiture of Israel, and the above laws were given; and stands here in its proper place as an instance of a presumptuous sinner, cut off from his people, according to the above law, which it immediately follows:
they found a man that gathered sticks on the sabbath day;
plucking them up by the roots, as the Targum of Jonathan, as stubble and the like; for the word signifies gathering straw or stubble, or such like light things, as Ben Melech observes, and binding them in bundles for fuel; and this was done on the sabbath day, by which it appears that that was to be kept in the wilderness, though the laws before mentioned concerning sacrifices, and the cake of the first dough, were not to be put in execution until Israel came into the land of Canaan; and according to the Targum of Jonathan this man was of the house of Joseph, and in the Talmud F25 it is expressly said that he was Zelophehad, who was a descendant of Joseph.