Some versions of the story include accounts of the scholar saving the islands from a sea demon (a jinni) that demanded virgin sacrifices, further cementing his influence and the appeal of Islam.