Source: http://www.resulullah.org/en/reliable
Timestamp: 2019-04-18 11:00:25+00:00

Document:
It was before Hazrat Muhammad was given the duty of prophethood. The tribes had come together to reconstruct the Kaaba and were working hard. It was time for Hajar al-Aswad (the Black Stone) to be put in its place. Every tribe wanted to place it themselves; therefore, there was a conflict among them. The conflict got bigger and people took out their swords.
That unexpected offer of Abu Umayya was accepted by all tribes. Everybody started to look at the gate of Bani Shayba. Who was going to enter through that gate and how was he going to settle the problem? How was he going to settle it without breaking the hearts of any tribes? People were observing that gate with curious looks. Somebody was seen at the gate!
Yes, the one that was coming was Muhammad al-Amin (pbuh). He was the honest person that everybody trusted in. Therefore, the worried and curious looks turned to happy looks. Everybody was sure that he was going to make a fair decision.
Yes, the entrance of the Prophet (pbuh) through that gate was not coincidental. He was going to make them confirm that he had wise decisions and profound ideas before his prophethood.
Qurayshis told him about the situation.
They brought him a cloth immediately. According to a narration, it was the garment of Walid b. Mughira. According to another narration, the Prophet (pbuh) used his own garment for it.
The Messenger of Allah (pbuh) put the cloth on the ground.
Everybody was looking at the Prophet (pbuh) carefully. What was he going to do with that cloth?
They did so. They liftedHajar al-Aswad to the place where it was going to be put with the cloth.
And the Messenger of Allah put Hajar al-Aswad into its place with his own hands and had the honor of placing it.
After that, they went on putting up the wall and it was completed in a short time.
Thus, the Messenger of Allah prevented a bloody clash among the tribe as a result of his right decision, which was a divine grant.
With that decision, the Prophet (pbuh) showed that he had a shrewder view, a stronger reasoning and a brighter intelligence than the more experienced and older people that were present there and that he was supported by a divine force.
 Ibn Hisham, ibid, V. 1, p. 209; Ibn Sa’d, ibid, V. 1, p. 146; Tabari, ibid, V. 2, p. 201.
 Ibn Hisham, Sirah, V. 1, p. 209; Ibn Sa’d, Tabaqat, V. 1, p. ?
 Balazuri, Ansab, V. 1, p. 99.
 Ibn Hisham, ibid, V. 1, p. 209-210; Ibn Sa’d, ibid, V. 1, p. 146; Tabari, Tarikh, V. 2, p. 201.
 Kaniatın Efendisi, Salih Suruç, p:297.

References: V. 
 V. 
 V. 
 V. 
 V. 
 V. 
 V. 
 V. 
 V.