Question: Let say in the holocaust one stole matzah to save his life because he was starving to death and at the same time he fulfilled the mitzva of eating matza Pesach night, whis he allowed to say a blessing over the stolen matzah?
A. The Mishna Berura (454:4:18) poskins that one may not say a blessing on stolen matza, even if just the ingredients were stolen and turned into matza because it’s considered disgusting to Hashem, so how can one make a blessing, whether on the mitzva of matza or hamotzi, over something disgusting to Hashem that is blasphemy!
B. The Beur Halacha quoting the Beis Meir says that what it means that it’s disgusting to say a blessing is that of course one must say it however he is mentioning his sin with the blessing, though he still has to bless. However the Beur halacha concludes that when in doubt by blessing be lenient and don’t say it.
C. Chaza”l say that according to the Torah we shall live by it and not die by it.
Answer: Since you are doing what Hashem wants you to do by staying alive, even at the expense of stealing from someone, that is not disgusting and is pleasing to Hashem.