Prior to Islam, some 360 idols surrounded it and Allah was their chief god.
"During Muhammad's early adulthood (before his``prophethood""), Ka'ba had to be renovated and, it was he who re-installed the black stone as the corner stone for the new building."