The Saudi Arabian ministry of interior announced on Friday that security authorities have foiled an attempted car bombing outside the Imam Hussein mosque in the city of Dammam.
The assailant was asked to stop their car before entering a parking lot outside the mosque, but set off the explosion when approached by local security personnel, killing four.
"While approaching it, it blew up killing four persons, one of them is suspected to be the bomber," a ministry spokesperson quoted by the Saudi Press Agency said.
ISIS took responsibility for the attack through a statement released on Twitter identifying the bomber as Abu Jandal al-Jizrawi.
The attack was the second to target a mosque on a Friday in Saudi Arabia this month, with ISIS conducting a suicide attack on a mosque in the village of Qatif during Friday prayer ceremonies last week, killing 22 and injuring over 50 worshipers in the mosque.