Hadith.2282 - It has been narrated:
"When Ibrahim عليه السلام completed his rituals, Allah سبحانه وتعالى, the Mighty and Majestic, commanded him to depart, so he left. The mother of Isma'il passed away, and he buried her in the Hijr and enclosed it with stones to prevent her grave from being stepped on. Isma'il عليه السلام remained alone.
Later, Allah سبحانه وتعالى, the Mighty and Majestic, gave permission to Ibrahim عليه السلام for the pilgrimage and the rebuilding of the Kaaba. At that time, the Arabs used to perform pilgrimage to the House, but it was in ruins, although its foundations were known. Isma'il عليه السلام, after the people departed, gathered stones and placed them in the interior of the Kaaba.
When Ibrahim عليه السلام arrived, he and Isma'il uncovered the site and found it to be a single red stone. Allah سبحانه وتعالى, the Mighty and Majestic, revealed to him: 'Place its construction upon it.' He sent down four angels to assist in the building. When the construction was complete, Ibrahim sat upon each corner and proclaimed: 'Come to the Hajj, come to the Hajj!' If he had called out, 'Come, O people, to the Hajj!' only those living at that time would have performed it. However, he proclaimed, 'Come to the Hajj!' and people responded while still in the loins of their fathers and the wombs of their mothers, saying:
'Here I am, O Caller of Allah سبحانه وتعالى! Here I am, O Caller of Allah سبحانه وتعالى!'"
"So whoever responded (to Ibrahim's call) once will perform Hajj once, whoever responded ten times will perform ten Hajj pilgrimages, and whoever did not respond will not perform Hajj. Ibrahim and Isma'il عليه السلام were placing the stones and raising the foundations while the angels handed them the materials, continuing until the height reached twelve cubits.
When they reached the location of the Black Stone, a voice called out to Ibrahim عليه السلام from Mount Abu Qubays, saying, 'O Ibrahim, I have a trust for you.' The mountain gave him the Black Stone, which he placed in its position. He then prepared two doors for the Kaaba, one as an entrance and the other as an exit, and constructed a threshold and a covering of palm leaves for the doors.
At that time, the Kaaba was uncovered. Ibrahim عليه السلام departed after completing the structure of the House, while Isma'il عليه السلام remained there. Isma'il married a woman from the Amalekites, but he separated from her and then married another woman from the Himyar tribe, who was wise.
This woman noticed the two doors of the House and said to Isma'il عليه السلام, 'Why do you not hang curtains over these two doors—one here and another there?' He replied, 'Yes,' and she made two curtains for the Kaaba, each twelve cubits in length. Isma'il عليه السلام hung them over the two doors."
The woman admired the curtains and said, "Why do I not sew clothing for the Kaaba to cover it entirely? These stones are unsightly." Isma'il عليه السلام replied, "Certainly." She hurried to undertake this task and sent word to her people to help spin the thread. Thus, women began spinning thread for one another for this purpose.
Whenever she completed a piece, she would hang it on the Kaaba. When the Hajj season arrived, only one side of the Kaaba remained uncovered. She said to Isma'il عليه السلام, "What should we do with this side?" So, they covered it with palm-leaf mats.
When the Hajj season came, the Arabs saw the Kaaba in this adorned state and were impressed. They said, "We should offer gifts to the caretaker of this House." From that time onward, the custom of offering gifts (al-hady) began. Each tribe of the Arabs started bringing something to the Kaaba, whether silver or other items, until a large amount was gathered.
They removed the palm-leaf mats and completed the covering of the Kaaba. They also hung two doors on the Kaaba. At that time, the Kaaba had no roof. Isma'il عليه السلام erected wooden columns, like the ones you see today, and roofed it with palm-leaf stalks, smoothing it with clay.
The Arabs from the surrounding areas came to the Kaaba, entered it, and observed its structure. They said, "The caretaker of this House should receive more offerings." The following year, offerings were brought again, but Isma'il عليه السلام did not know what to do with them. Allah سبحانه وتعالى, the Mighty and Majestic, revealed to him: "Slaughter (the offerings) and feed them to the pilgrims."
The water of Zamzam dried up, and Isma'il عليه السلام complained to Ibrahim عليه السلام about the lack of water. Allah سبحانه وتعالى, the Mighty and Majestic, revealed to Ibrahim عليه السلام and commanded him to dig. Ibrahim, Isma'il, and Archangel Jibril عليه السلام dug until the water appeared. Ibrahim struck the four corners of the well, saying "In the name of Allah سبحانه وتعالى" with each strike, and four springs gushed forth.
Archangel Jibril عليه السلام said to Ibrahim عليه السلام, "Drink, O Ibrahim, and pray for your descendants to be blessed with this water. Pour it upon yourself and circumambulate this House. This is the water that Allah سبحانه وتعالى has provided for Isma'il and his offspring."
As for the words of Allah سبحانه وتعالى, the Mighty and Majestic: "In it are clear signs, the station of Ibrahim"—one of these signs is that when Ibrahim عليه السلام stood on the stone, his footprints were imprinted on it. The second is the Black Stone, and the third is the dwelling of Isma'il عليه السلام."