ISIS has claimed responsibility for an attack against a remote Egyptian outpost in the Sinai Peninsula with a suicide car bomb and heavy machine gun fire.

ISIS made the claim in an online statement on Friday, saying it had carried out the attack as the Egyptian army was preparing an assault on the group’s positions in Sinai.

The terrorist attack killed more than 23 soldiers in what has been described as the deadliest attack in the turbulent region in two years.

It occurred as ISIS is now witnessing its demise in Iraq and Syria, especially following the liberation of Mosul.

Egypt has been suffering from terrorist activities for years. Militant groups have taken advantage of the vast arid and underdeveloped region as an ideal to progress.

Friday’s attack was launched in the morning, when a suicide attacker rammed his vehicle into a checkpoint at a military compound in the village of el-Barth, southwest of the border town of Rafah.

One of the officers at the checkpoint used his cellphone to record an audio message and send it to a colleague via WhatsApp, seeking help and asking for prayers.

“This might be the last seconds in my life,” a man's voice calmly says in the recording, which was later widely circulated on social media. “Quickly, oh men, anyone who knows how to reach the command center, notify them to use artillery as we are still alive.”