Hazrat Hudhaifah (may Allah be pleased with him) says that if you are under attack, then speaking and fighting during prayer is permissible.