Al-Khidhr and Moses were traveling together when Al-Khidhr performed three unexpected acts - tearing a hole in a ship, killing a boy, and repairing a wall - that angered Moses. Al-Khidhr explained that he had knowledge that Moses did not. He tore the ship to damage a vessel belonging to a corrupt king. He killed the boy because his parents' faith was weak and he feared the boy would burden them. He repaired the wall to help two orphan boys access a treasure beneath it as a mercy from God. Moses realized Al-Khidhr had wisdom he lacked.