Yosef Karo, Shulchan Aruch — 157 For what mitzvot does one die rather than transgress…
“ And by idolatry, forbidden relations, and murder, even in private and not a time with legislation and even if the idolater intends it only for his own benefit, he must be killed rather than transgress. ”
