According to Islamic sources, the Kaaba was a place of worship for angels before the creation of men. After the creation of Adam, the Kaaba was built by him.According to Qur'an, it is the first house on Earth. 