"And they have tested Me these ten times" (Numbers 14:22). And these are they: two at the Sea of Reeds, as it is said, "but rebelled at the sea, at the Sea of Reeds" (Psalms 106:7), "Is it because there are no graves in Egypt" (Exodus 14:11). One at the waters of Meribah, as it is said, "And he called the name of the place Massah and Meribah" (Exodus 17:7). And one with the calf. And one with the complainers, and with the sending. And in the controversy of Korah, as it is said, "Separate yourselves from among this congregation" (Numbers 16:21) — for the controversy of Korah was first directed at the spies, and afterward "all the congregation of the children of Israel murmured" (Numbers 17:6), and the Holy One, blessed be He, was angry with them, and said, "Get you up from among this congregation" (Numbers 17:10). With the spies — behold, you have ten.
The Ten Times Israel Tested God in the Wilderness
Midrash Aggadah, Numbers 14:22
וינסו אותי זה עשר פעמים. ואלו הם, שנים בים סוף, שנאמר וימרו על ים בים סוף (תהלים ק"ו ז'), המבלי אין קברים במצרים (שמות י"ד י"א). א' על מי מריבה. שנאמר ויקרא שם המקום מסה ומריבה (שם י"ז ז'). ואחד בעגל. ואחד במתאוננים, ובשליח. ובמחלוקתו של קרח, שנאמר הבדלו מתוך העדה וגו' (במדבר ט"ז כ"א), לפי שמחלוקתו של קרח היתה תחלה למרגלים ואחר וילונו כל עדת בני ישראל וגו' (שם י"ז ו'), וכעס הקב"ה עליהם, ואמר הרומו מתוך העדה הזאת (שם שם י'). במרגלים, הרי לך עשרה: