It is believed Allah commanded Abraham to build the Kaaba, which is surrounded by the Grand Mosque.