Deuteronomy 9:7 says:
זְכֹר֙ אַל־תִּשְׁכַּ֔ח אֵ֧ת אֲשֶׁר־הִקְצַ֛פְתָּ אֶת־יְהוָ֥ה אֱלֹהֶ֖יךָ בַּמִּדְבָּ֑ר לְמִן־הַיּ֞וֹם אֲשֶׁר־יָצָ֣אתָ ׀ מֵאֶ֣רֶץ מִצְרַ֗יִם עַד־בֹּֽאֲכֶם֙ עַד־הַמָּק֣וֹם הַזֶּ֔ה מַמְרִ֥ים הֱיִיתֶ֖ם עִם־יְהוָֽה׃
(modified Sefaria.org translation)
Remember, don't forget, how you angered the LORD your God in the wilderness; from the day that you left the land of Egypt, until you came to this place, you have been rebellious against the LORD.
Several points at both ends of the time spectrum, mentioned. There doesn't appear to be any mentioning in the Torah that they rebelled against G-d on the day that they left Egypt. As a matter of fact, contrarily, it says that they cooperated (See, for example, Exodus 12:50.) When they were in the desert before crossing the Sea of Reeds, G-d commands them to turn back and camp at Pi Hahirot, and they obeyed. (Exodus 14:4).
Perhaps, their first "test" of G-d occurred after they crossed the Sea of Reeds. Would that be considered "rebellion"?
Then, Moses implies that the rebellion happened constantly during the entire 40 years in the desert. The last "rebellion" we see mentioned is in Numbers, beginning chapter 25, where they followed the daughters of Mo'ab and worshiped idols.
There was a long period in the desert after that. The Torah does not mention much about what happened during about 38 years in the desert. Were they rebelling in the desert the whole time?
In short, is Moses claim to be taken literally? See a related statement that Moses says a bit later in the same chapter Deuteronomy 9:24:
מַמְרִ֥ים הֱיִיתֶ֖ם עִם־יְהוָ֑ה מִיּ֖וֹם דַּעְתִּ֥י אֶתְכֶֽם׃
You have been rebellious against the LORD from the day that I knew you.
This seems to be a harsher claim than the one before as it extends the time to even before they left Egypt!
Are Moses claims to be taken literally? What did he mean by stating this? Esp. in the 2nd statement of Moses; how did they rebel against G-d while they were still enslaved, which is about the time Moses "knew them"?