In Islam, it is permissible to lie if doing so would prevent you from serious harm or death. Notice the word "permissible".