Cameramen film at the scene where a man was shot dead by the police after attacking passengers on a train with an ax near the city of Wuerzburg, Germany July 19, 2016. REUTERS/Kai Pfaffenbach

BERLIN (Reuters) - Saudi Arabia has offered to help German investigators find those behind Islamist bomb and ax attacks in July, news magazine Der Spiegel reported on Saturday, citing a senior member of the Saudi government.

Saudi authorities are in contact with their German colleagues, responding to new findings that show both attackers were in close contact via a chat conversation with possible Islamic State backers from Saudi Arabia, Spiegel said.

Traces of the chat, which investigators have been able to reconstruct, indicate that both men were not only influenced by but also took instructions from people, as yet unidentified, up until the attacks, the report said.

The Islamic State group has claimed responsibility for an attack on July 18 near Wuerzburg in Bavaria in which a 17-year-old refugee believed to be from Pakistan or Afghanistan wounded five people with an ax before police shot him dead.

A 27-year-old Syrian who blew himself up in Ansbach, southern Germany on July 24 had pledged allegiance to Islamic State on a video found on his mobile phone, investigators said. Islamic State claimed responsibility for the bombing, which wounded 15 people.

Bavaria’s Interior Minister said at the end of July that the Ansbach bomber had been “significantly influenced” in a chat conversation on his mobile phone that ended just before the attack.