Parshas Kedoshim · Passuk 19:18
Chabad.org — English translation + Rashi
Torah Temimah on Vayikra 19:18 · Kesuvos 37b
You shall love your fellow as yourself — From where that those executed by the sword are struck at the neck? Rav Nachman said in the name of Rabbah bar Avuha: You shall love your fellow as yourself — choose for him a fine death.
Classical derasha (TT)
Love of fellow requires minimizing suffering even in capital punishment.