Complex sentence: According to Muslims, during the war, the angel Jibra'il (Gabriel) came and brought him a message from God, teaching prayer to Muhammad to protect him from bad events.
Split into simpler sentences: According to Muslims, during the war, Jibra'il (Gabriel) came and brought him a message from Allah. He taught the prayer to Muhammad to protect him from bad events.