Vayikra20:7

וְהִתְקַדִּשְׁתֶּם וִהְיִיתֶם קְדֹשִׁים כִּי אֲנִי יְהוָה אֱלֹהֵיכֶם׃

Sanctify yourselves and be holy, for I am the Eternal your Almighty.

Vayikra 20:7

וְהִתְקַדִּשְׁתֶּם וִהְיִיתֶם קְדֹשִׁים

Vayikra / Leviticus 20:7 · Sod

Vayikra 20:7

וְהִתְקַדִּשְׁתֶּם וִהְיִיתֶם קְדֹשִׁים כִּי אֲנִי יְהוָה אֱלֹהֵיכֶם׃

Sanctify yourselves and be holy, for I am the Eternal your Almighty.

Sod סוֹד

Holiness as a promise

You did all you could, yet your heart does not change. Does that mean it was all in vain?

Mei HaShiloach: "sanctify yourselves" is a command to fence oneself off from the forbidden, and "be holy" is a promise: purifying the heart is not in a person's power, it is done by the Eternal's help. Ohev Yisrael: the Eternal contracts His holiness to the strength of each creature, so it comes and recedes. But a person can cleave to Him always.

How Mei HaShiloach and Ohev Yisrael explain it

Mei HaShiloach Sanctify yourselves and be holy

"Sanctify yourselves" means that the Eternal warns Israel to sanctify themselves and fence themselves in with all the fences they were commanded: in forbidden food, in forbidden intimacy and in all that is forbidden. And if after all the fences and all the sanctifying a person's heart is still not purified and not drawn after the will of the Eternal, of this He promises us: "and be holy". That is, it is a promise that the Eternal gives us: we will be sanctified. For in truth, purifying the heart so that it is drawn after the will of the Eternal is not in a person's power, it is possible only with the help of the Eternal.

Ohev Yisrael Sanctify yourselves and be holy

In the midrash mentioned above it is explained differently: "One might think, like Me? So it says 'for I am holy': My holiness is above your holiness." And one can say this. The Gemara says: why are the righteous before the Presence of the Creator (שְׁכִינָה) like a candle before a torch? And our teacher, Rabbi Dov Ber, may the memory of the righteous be a blessing, explained: the Gemara says that a torch casts its light backward and flares in bursts. This hints at the Creator, blessed is He: He is infinite (אֵין סוֹף) and beyond grasp, and whose strength could contain Him? Surely, if the Holy One, blessed is He, shone with all His holiness, all the worlds and all creatures would be as nothing before Him and would vanish from existence entirely. But He, blessed is He, contracts (מְצַמְצֵם) His Presence and His holiness to the strength of each creature, so that each can receive His bounty and life. This is "casts its light backward": His holiness can be grasped only from behind. "And flares in bursts": holiness does not flow the same all the time, but little by little, and at times the light returns. Here his words end. And this is "be holy": one might think, like Me? That is, that you would not stand in holiness constantly, but at times draw back, like Me? So it says "for I am holy": My holiness is above your holiness. So I need a returning light (אוֹר חוֹזֵר), so that you can receive it. But you, on the contrary, can cleave constantly. May it be His will, amen. Understand this well.

Takeaway

The midrash: "'You shall be holy.' One might think, like Me? So it says 'for I am holy': My holiness is above your holiness" (Vayikra Rabbah 24:9).
A torch casts its light backward and flares in bursts, so before Pesach leaven is searched for by a candle and not by a torch (Pesachim 8a).
Contraction (צִמְצוּם) is the Infinite reducing His light so that creatures can bear and receive it (Ohev Yisrael, Kedoshim 4).