What did the Qur'an permit?