when the messenger of allâh [pbuh] was thirty five, quraish started rebuilding al-ka‘bah. that was because it was a low building of white stones no more than 6.30 metres high, from the days of ishmael. it was also roofless and that gave the thieves easy access to its treasures inside. it was also exposed to the wearing factors of nature — because it was built a long time ago — that weakened and cracked its walls. five years before prophethood, there was a great flood in makkah that swept towards al-ka‘bah and almost demolished it. quraish was obliged to rebuild it to safeguard its holiness and position. the chiefs of quraish decided to use only licit money in rebuilding al-ka‘bah, so all money that derived from harlotry, usury or unjust practices was excluded. they were, at first, too awed to knock down the wall, but al-waleed bin al-mugheerah al-mukhzumi started the work. seeing that no harm had happened to him, the others participated in demolishing the walls until they reached the basis laid by abraham. when they started rebuilding its walls, they divided the work among the tribes. each tribe was responsible for rebuilding a part of it. the tribes collected stones and started work. the man who laid the stones was a roman mason called baqum. the work went on in harmony till the time came to put the sacred black stone in its proper place. then strife broke out among the chiefs, and lasted for four or five days, each contesting for the honour of placing the stone in its position. daggers were on the point of being drawn and great bloodshed seemed imminent. luckily, the oldest among the chiefs abu omaiyah bin mugheerah al-makhzumi made a proposal which was accepted by all. he said: "let him, who enters the sanctuary first of all, decide on the point." it was then allâh’s will that the messenger of allâh [pbuh] should be the first to enter the mosque. on seeing him, all the people on the scene, cried with one voice: "al-ameen (the trustworthy) has come. we are content to abide by his decision." calm and self-possessed, muhammad [pbuh] received the commission and at once resolved upon an expedient which was to conciliate them all. he asked for a mantle which he spread on the ground and placed the stone in its centre. he then asked the representatives of the different clans among them, to lift the stone all together. when it had reached the proper place, muhammad [pbuh] laid it in the proper position with his own hands. this is how a very tense situation was eased and a grave danger averted by the wisdom of the prophet [pbuh].
quraish ran short of the licit money, they collected, so they eliminated six yards area on the northern side of al-ka‘bah which is called al-hijr or al-hateem. they raised its door two metres from the level ground to let in only the people whom they desired. when the structure was fifteen yards high they erected the roof which rested on six columns.
when the building of al-ka‘bah had finished, it assumed a square form fifteen metres high. the side with the black stone and the one opposite were ten metres long each. the black stone was 1.50 metre from the circumambulation level ground. the two other sides were twelve metres long each. the door was two metres high from the level ground. a building structure of 0.25 metre high and 0.30 metre wide on the average surrounded al-ka‘bah. it was called ash-shadherwan, originally an integral part of the sacred sanctuary, but quraish left it out. [bukhari 1/215; fiqh as-seerah p.62-63; ibn hisham 2/192-197]