 It was concerning them that Moses said in “They are a very contrary generation, children in whom is no faithfulness.” For the Midrash taught that the spies had been chosen out of all Israel by the command of both God and Moses; as Moses said in “And the thing pleased me well; and I took twelve men of you,” implying that they were righteous in the opinion of both Israel and in Moses.Yet Moses did not want to send them on his own responsibility, so he consulted God about each individual, mentioning the name and tribe of each, and God told Moses that each was worthy.The Midrash explained that one can infer that God told Moses that they were worthy, because reports, “And Moses sent them from the wilderness of Paran "according to the commandment of the Lord".” Afterwards, at the end of 40 days, they changed and made all the trouble, causing that generation to be punished; thus says, “For they are a very contrary ("tahpukot") generation,” since when they were selected they were righteous and then they changed ("nitapeku").