"Blessed above women shall Jael be" (Judges 5:24). Rabbi Nachman said: Greater is a transgression performed for the sake of Heaven than a commandment performed not for its own sake, as it is written, "Blessed above women shall Jael be, the wife of Heber the Kenite; above women in the tent shall she be blessed" (Judges 5:24). Who are these "women in the tent"? Sarah, Rebecca, Rachel, and Leah.
Blessed Above Women Is Jael and the Sin for Heaven's Sake
Yalkut Shimoni on Nach 55:2
תבורך מנשים יעל. א"ר ננחמן גדולה עבירה לשמה ממצוה שלא לשמה דכתיב תבורך מנשים יעל אשת חבר הקיני מנשים באהל תבורך מאן נינהו נשים באהל שרה רבקה רחל ולאה: