Another explanation: And you will quickly perish (Deuteronomy 11:17) — even though I am exiling you from the land [of Israel], be marked by the commandments, so that when you return, they will not be new to you. It is as Jeremiah said (Jeremiah 31:21), Set up signposts (tziyunim) for yourselves": These are the commandments, through which Israel are marked (metzuyanim). Make high heaps for yourself: [reminiscent of] the destruction of the Temple, as it states (Psalms 137:5), If I forget you, O Jerusalem, etc. (Jeremiah, Ibid.) Set your heart to the road, the way on which you came.: The Holy One, blessed be He, said to them, "My children, give heart to the ways in which you walked, and repent, and immediately you will return to your cities, as it is stated, Repent, O virgin of Israel — Return to these, your cities!"
Preserving Identity Through the Long Years of Exile
Yalkut Shimoni on Torah 869:4
דָּבָר אַחֵר וַאֲבַדְתֶּם מְהֵרָה". אַף עַל פִּי שֶׁאֲנִי מַגְלֶה אֶתְכֶם מִן הָאָרֶץ לְחוּצָה לָאָרֶץ הֱיוּ מְצֻיָּנִין בַּמִּצְווֹת שֶׁכְּשֶׁתַּחְזְרוּ לֹא יְהוּ עֲלֵיכֶם חֲדָשִׁים. מָשָׁל לְמֶלֶךְ שֶׁכָּעַס עַל אִשְׁתּוֹ וּטְרָפָהּ לְבֵית אָבִיהָ, אָמַר לָהּ הֱוִי מִתְקַשֶּׁטֶת בְּתַכְשִׁיטַיִךְ שֶׁכְּשֶׁתַּחְזְרִי לֹא יְהוּ עָלַיִךְ חֲדָשִׁים. כָּךְ אָמַר לָהֶם הַקָּדוֹשׁ בָּרוּךְ הוּא לְיִשְׂרָאֵל, בָּנַי, הֱיוּ מְצֻיָּנִין בַּמִּצְווֹת שֶׁכְּשֶׁתַּחְזְרוּ לֹא יְהוּ עֲלֵיכֶם חֲדָשִׁים. הוּא שֶׁיִּרְמְיָה אוֹמֵר (ירמיה לא, כ) "הַצִּיבִי לָךְ צִיֻּ(וּ)נִים שִׂ(י)מִי לָךְ תַּמְרוּרִים" וְגוֹ', "הַצִּיבִי לָךְ צִיּ(וּ)נִים" אֵלּו הַמִּצְווֹת שֶׁיִּשְׂרָאֵל מְצֻיָּנִים בָּהֶן, "שִׂ(י)מִי לָךְ תַּמְרוּרִים" זֶה חֻרְבַּן בֵּית הַמִּקְדָּשׁ, שֶׁכֵּן הוּא אוֹמֵר (תהלים קלז, א) "אִם אֶשְׁכָּחֵךְ יְרוּשָׁלָיִם" וְגוֹ'. "שִׁ(י)תִי לִבֵּךְ לַמְסִלָּה דֶּרֶךְ הָלָכְתָּ", אָמַר לָהֶם הַקָּדוֹשׁ בָּרוּךְ הוּא לְיִשְׂרָאֵל, בָּנַי, רְאוּ בְּאֵלּוּ דְּרָכִים הֲלַכְתֶּם וַעֲשׂוּ תְּשׁוּבָה, מִיָּד אַתֶּם חוֹזְרִין לְעָרֵיכֶם שֶׁנֶּאֱמַר (שם) "שׁוּבִי בְּתוּלַת יִשְׂרָאֵל שׁ(וּ)בִי אֶל עָרַיִךְ אֵלֶּה".