Khidr is described as a messenger, prophet or wali, who guards the sea, teaches secret knowledge and aids those in distress.