Vayikra / Leviticus 19:2 · Pshat
דַּבֵּר אֶל־כָּל־עֲדַת בְּנֵי־יִשְׂרָאֵל וְאָמַרְתָּ אֲלֵהֶם קְדֹשִׁים תִּהְיוּ כִּי קָדוֹשׁ אֲנִי יְהוָה אֱלֹהֵיכֶם׃
"Speak to the whole community of the children of Israel and say to them: You shall be holy, for I the Eternal your Almighty am holy.
Pshat פְּשָׁט
You shall be holy
Holiness seems to be for a chosen few. So why are these words said to the whole community at once?
Rashi: this section was said at a gathering of the whole people, because most of the main laws of the Torah depend on it. "You shall be holy" means: keep apart from forbidden intimacy and from sin, for wherever the Torah sets a fence against forbidden intimacy, it also speaks of holiness. Sforno: "for I am holy" means that it is fitting for you to resemble Him as far as possible, in thought and in deed.
How Rashi and Sforno explain it
Rashi Speak to the whole community of the children of Israel
This teaches that this section was said at a gathering of the whole people, because most of the main laws of the Torah depend on it.
Rashi You shall be holy
Keep apart from forbidden intimacy and from sin. For wherever you find a fence against forbidden intimacy, you find holiness too: "a woman who is a harlot or profaned" and beside it "I the Eternal sanctify you" (Vayikra / Leviticus 21:7–8), "and he shall not profane his offspring" and beside it "I the Eternal sanctify him" (Vayikra / Leviticus 21:15), "they shall be holy" and beside it "a woman who is a harlot or profaned" (Vayikra / Leviticus 21:6–7).
Sforno For I the Eternal your Almighty am holy
And it is fitting for you to resemble Me as far as possible, in understanding and in deed. And to reach this likeness He explained that we must keep the commandments written on the first tablet: their whole aim is eternal life alone, as He explained at their end with the words "that your days may be long", and this is explained in its place. And He began to explain what it means to honour father and mother.
Takeaway
The last of the sayings on the first tablet is honouring father and mother, and it ends with the words "that your days may be long" (Shemot / Exodus 20:12). Right after "you shall be holy" the Torah says: "every man shall fear his mother and his father" (Vayikra / Leviticus 19:3).
The midrash says that this section was said at a gathering of the whole people because all Ten Sayings are included in it (Tanchuma, Kedoshim 3).
A profaned woman (חֲלָלָה) is one born of a marriage forbidden to a priest, and she may not marry a priest (Vayikra / Leviticus 21:7, Rashi there).