The night which the Messenger of Allah ﷺ passed with me was the one that followed the day of sacrifice. He came to me and Wahb ibn Zam'ah also visited me. A man belonging to the lineage of AbuUmayyah accompanied him. Both of them were wearing shirts. The Messenger of Allah ﷺ said to Wahb: Did you perform the obligatory circumambulation (Tawaf az-Ziyarah), AbuAbdullah? 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). (Using translation from Abū Dāʾūd 1999)
وَعَنْ أُمِّهِ زَيْنَبَ بِنْتِ أَبِي سَلَمَةَ يُحَدِّثَانِهِ عَنْ أُمِّ سَلَمَةَ يُحَدِّثَانِهِ بِذَلِكَ جَمِيعًا عَنْهَا قَالَتْ كَانَتْ لَيْلَتِي الَّتِي يَصِيرُ إِلَيَّ رَسُولُ اللَّهِ ﷺ فَدَخَلَ عَلَيَّ وَهْبُ بْنُ زَمْعَةَ وَمَعَهُ رَجُلٌ مِنْ آلِ أَبِي أُمَيَّةَ مُتَقَمِّصَيْنِ فَقَالَ النَّبِيُّ ﷺ لِوَهْبٍ «هَلْ أَفَضْتَ أَبَا عَبْدِ اللَّهِ؟» قَالَ لَا وَاللَّهِ يَا رَسُولَ اللَّهِ قَالَ «انْزِعْ عَنْكَ الْقَمِيصَ» قَالَ فَنَزَعَهُ مِنْ رَأْسِهِ وَنَزَعَ صَاحِبُهُ قَمِيصَهُ مِنْ رَأْسِهِ قَالُوا وَلِمَ يَا رَسُولَ اللَّهِ؟ قَالَ «إِنَّ هَذَا قَدْ رَخَّصَ لَكُمْ إِذَا رَمَيْتُمُ الْجَمْرَةَ أَنْ تَحِلُّوا مِنْ كُلِّ مَا حُرِمْتُمْ مِنْهُ إِلَّا النِّسَاءَ فَإِذَا أَمْسَيْتُمْ قَبْلَ أَنْ تَطُوفُوا بِهَذَا الْبَيْتِ صِرْتُمْ حُرُمًا كَهَيْئَتِكُمْ قَبْلَ أَنْ تَرْمُوا الْجَمْرَةَ حَتَّى تَطُوفُوا» قَالَ أَبُو عُبَيْدَةَ وَحَدَّثَتْنِي أُمُّ قَيْسٍ