Devarim26:1

וְהָיָה כִּי־תָבוֹא אֶל־הָאָרֶץ אֲשֶׁר יְהוָה אֱלֹהֶיךָ נֹתֵן לְךָ נַחֲלָה וִירִשְׁתָּהּ וְיָשַׁבְתָּ בָּהּ׃

And it shall be, when you come into the land which the Eternal your Almighty gives you as an inheritance, and you possess it and dwell in it,

Devarim 26:1

וְהָיָה כִּי־תָבוֹא אֶל־הָאָרֶץ

Devarim / Deuteronomy 26:1 · Remez

Devarim 26:1

וְהָיָה כִּי־תָבוֹא אֶל־הָאָרֶץ אֲשֶׁר יְהוָה אֱלֹהֶיךָ נֹתֵן לְךָ נַחֲלָה וִירִשְׁתָּהּ וְיָשַׁבְתָּ בָּהּ׃

And it shall be, when you come into the land which the Eternal your Almighty gives you as an inheritance, and you possess it and dwell in it,

Remez רֶמֶז

Thirty righteous

Sometimes neighbouring paragraphs explain each other better than any commentary. Torah scholars read this way too: what stands next to what, and what hides in the letters.

Kitzur Ba'al HaTurim: just before this verse comes the command to blot out the memory of Amalek. Amalek wanted to keep the people from entering the land, so he is spoken of at the very entrance. And in the words "when you come" (כִּי תָבוֹא) he finds the number thirty and the forefathers: the Land of Israel always has thirty righteous people equal to the forefathers.

How Kitzur Ba'al HaTurim explain it

Kitzur Ba'al HaTurim When you come

Just before it is written "Blot out the memory of Amalek" (Devarim / Deuteronomy 25:19), and next to it "And it shall be, when you come into the land". This means they were commanded to blot out the memory of Amalek as soon as they entered the land, because he wanted to keep them from coming to the land: it was he who told the king of Egypt that the people had fled. And he likewise told Lavan that Yaakov (Jacob) had fled. Therefore the passage of first fruits, which mentions "An Aramean wanted to destroy my father", is placed next to it.

"When" (כִּי) equals thirty. "You come" (תָבוֹא) has the letters of "fathers" (אָבוֹת). This is what the sages taught in the chapter of the sciatic nerve: the Land of Israel never has fewer than thirty righteous people who count as the forefathers.

Takeaway

"When" (כִּי): כ 20 + י 10 = 30.
"You come" (תָבוֹא) and "fathers" (אָבוֹת) are the same letters ת, ב, ו, א in another order.
"An Aramean wanted to destroy my father" are words read over the first fruits (Devarim / Deuteronomy 26:5). Targum Onkelos and Rashi read them so: Lavan the Aramean wanted to destroy Yaakov. That is why Kitzur Ba'al HaTurim ties the passage to Amalek, who informed Lavan.
The chapter of the sciatic nerve is a chapter of tractate Chullin. The thirty righteous like Avraham appear in Chullin 92a.