The Messenger of Allah (ﷺ) said to Wahb: Did you perform the obligatory circumambulation (Tawaf az-Ziyarah), Abu Abdullah?
He said: No, by Allah Messenger of Allah.
He (the Prophet) said: Take off your shirt. He then took it off over his head, and his companion too took his shirt off over his head.
He then asked: And why (this), Messenger of Allah? He replied: On this day you have been allowed to take off ihram when you have thrown the stones at the jamrahs, that is, everything prohibited during the state of ihram is lawful except intercourse with a woman. If the evening comes before you go round this House (the Ka'bah) you will remain in the sacred state (i.e. ihram), just like the state in which you were before you threw stones at the jamrahs, until you perform the circumambulation of it (i.e. the Ka'bah).
In-book : Book 11, Hadith 279
English translation : Book 10, Hadith 1994