Abu Huraira said that God's messenger came and entered Mecca, and after he had gone forward to the stone and touched it, he went round the House. He then went to as-Safa and mounted it so that he could look at the House, then he raised his hands, began to make mention of God as much as he wished and make supplication.
Al-Muhajir al-Makki said that Jabir was asked about the man who raises his hands on seeing the House and replied, “We have performed the pilgrimage along with the Prophet and we did not do so.”
Ibn ‘Abbas reported the Prophet as saying, “The circumambulation of the House is like prayer, except that you speak while performing it; but he who speaks must speak only what is good."
Tirmidhi, Nasa’i and Darimi transmitted it, Tirmidhi mentioning a number who traced it no farther back than Ibn ‘Abbas.
On the day of sacrifice at the pilgrimage before the Farewell Pilgrimage over which the Prophet had appointed Abu Bakr, he sent me with a group whom he had ordered to announce among the people, “After this year no polytheist may perform the pilgrimage, and no naked person may go round the House.”