:salam2:
Yes depends on the condition.
Like if your gonna die and the only thing available to you is pig.
What do you do.
Eat pig to live.
Same thing with lying.
And Allah (SWT) knows best
Rasulullah [sallallaahu alayhi wasallam] himself made the exception to the rule and whatever Rasulullah [sallallaahu alayhi wasallam] says is a revelation from Allah. He said, ‘Lies are only permitted in three instances, for a man to make his wife happy, in war and for reconciliation between people.’ (Tirmidhi).
Please utilize the SEARCH option located at the top to avoid multiple threads or posts as most subjects have been discussed already in the past. This is also one way to help the website Inshaa'Allaah. Please check out the link posted by sister Amirah80.