It is narrated from Abu Ja'far that when a person is compelled to something forbidden, then whatever is forbidden to him becomes lawful.