Bamidbar35:6

וְאֵת הֶעָרִים אֲשֶׁר תִּתְּנוּ לַלְוִיִּם אֵת שֵׁשׁ־עָרֵי הַמִּקְלָט אֲשֶׁר תִּתְּנוּ לָנֻס שָׁמָּה הָרֹצֵחַ וַעֲלֵיהֶם תִּתְּנוּ אַרְבָּעִים וּשְׁתַּיִם עִיר׃

And among the cities which you shall give to the Levites shall be the six cities of refuge, which you shall give for the manslayer to flee there. And besides them you shall give forty-two cities.

Bamidbar 35:6

וְאֵת הֶעָרִים אֲשֶׁר

Bamidbar / Numbers 35:6 · Remez

Bamidbar 35:6

וְאֵת הֶעָרִים אֲשֶׁר תִּתְּנוּ לַלְוִיִּם אֵת שֵׁשׁ־עָרֵי הַמִּקְלָט אֲשֶׁר תִּתְּנוּ לָנֻס שָׁמָּה הָרֹצֵחַ וַעֲלֵיהֶם תִּתְּנוּ אַרְבָּעִים וּשְׁתַּיִם עִיר׃

And among the cities which you shall give to the Levites shall be the six cities of refuge, which you shall give for the manslayer to flee there. And besides them you shall give forty-two cities.

Remez רֶמֶז

Forty-two against forty-two

The number forty-two has already appeared in this chapter: that is how many camps there were in the wilderness. The commentators tie the cities of the Levites to it, and another finds the same number in the reading of the Shema.

Kli Yakar: forty-two cities were given to the Levites against the forty-two camps, at which Israel were like strangers. The Levites have no portion in the land and are also like strangers, so a fugitive, himself a stranger, finds refuge with them: no one will tell him "you are a stranger." Shem MiShmuel: the six refuges are against the six words of "Hear, Israel," and the forty-two cities are against the forty-two words from "and you shall love" to the end of the passage. The six receive both one who came knowingly and one who did not, and the forty-two only one who came knowingly, for love comes through knowledge.

How Kli Yakar and Shem MiShmuel explain it

Kli Yakar Forty-two cities

Against the forty-two camps at which Israel camped, and in all of them they were like strangers. So they gave the Levites, who had no portion in the land, forty-two cities. And the cities of refuge shall be from the cities of the Levites, because one who flees to his city of refuge is a stranger there, and there is a concern that the inhabitants of the land will say to him: you are a stranger in the land. Therefore He commanded that the cities of refuge be from the cities of the Levites: for the Levites too are like strangers, and they will say to him: a fault that is in you, do not ascribe to your fellow. In the way of what is said: "And you know the soul of the stranger, for you were strangers" (Shemot / Exodus 23:9), and as it says: "Your offspring shall be strangers in a land not theirs" (Bereshit / Genesis 15:13), that is, in a land that is not theirs but of the inhabitants of the land. For Yosef (Joseph) moved them to the cities so that they would be like strangers there, so that they could not say to Israel: you are strangers.

Shem MiShmuel Six cities of refuge, and besides them forty-two cities

And similarly we find with the cities of refuge: there were six cities of refuge, and besides them they gave forty-two cities. And by the tradition of our sages, of blessed memory, all of them receive the manslayer, and the only difference between them is that the six cities of refuge receive both one who came knowingly and one who came unknowingly, and the forty-two cities of the Levites receive only one who came knowingly. The point is that the six cities of refuge are against the six words of unity, and the forty-two cities of the Levites are against the words from "and you shall love" in the Shema to the end of the passage. The six words of unity are the unity of the Blessed One from above to below. The hint of this is in the words of the sages: so that you make Him King in the heavens, on the earth and in the four directions, so it is from above to below. And "and you shall love" and so on is from below to above, the longing of the created beings for the Blessed One. They are like Shabbat and the new moon: Shabbat is from below to above, and the new moon is from above to below. It turns out that the verse of unity is against the new moon, and from "and you shall love" onward is against Shabbat. Therefore the six cities of refuge, which are against the six words of unity, from above to below, like the new moon, receive both one who came knowingly and one who did not. For the new moon is submission and lowliness, and it does not come from the virtue of knowledge in a person, but because he is submissive and ready to receive from the Cause, blessed is He. And the forty-two cities of the Levites, which are against "and you shall love," are against Shabbat, which is from the side of knowledge, for love comes from the side of knowledge. And of Shabbat it says: "to know that I am the Eternal who sanctifies you." Therefore they receive only one who came knowingly.

Takeaway

"Hear, Israel: the Eternal is our Almighty, the Eternal is one" (Devarim / Deuteronomy 6:4): six words. The passage "And you shall love the Eternal your Almighty" up to the words "and on your gates" (Devarim / Deuteronomy 6:5–9) has forty-two words.
The Talmud: the six cities of refuge receive both knowingly and unknowingly, and the forty-two only knowingly (Makkot 10a).
"Only keep My Sabbaths, for it is a sign between Me and you for your generations, to know that I am the Eternal who sanctifies you" (Shemot / Exodus 31:13).