The Sermon on the day of Sacrifice, throwing Pebbles on the tashriq days, and taking Farewell of the Ka`ba - Section 1 Mishkat al-Masabih 2668

Arabic hadith text
وَعَنِ ابْنِ عَبَّاسٍ قَالَ: كَانَ النَّاسُ يَنْصَرِفُونَ فِي كُلِّ وَجْهٍ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا يَنْفِرَنَّ أَحَدُكُمْ حَتَّى يَكُونَ آخِرُ عَهْدِهِ بِالْبَيْتِ إِلَّا أَنَّهُ خُفِّفَ عَنِ الْحَائِضِ»
Translation

Ibn ‘Abbas told that the people were departing in all directions, so God’s messenger said, “None of you must go off till his obligations at the House are complete, except that this is remitted for a woman who is in her courses.” Bukhari and Muslim.