Bulugh al-Maram 771
وَعَنْ عَاصِمِ بْنِ عَدِيٍّ - رضي الله عنه: أَنَّ رَسُولَ اللَّهِ - صلى الله عليه وسلم - أَرْخَصَ لِرُعَاة الْإِبِلِ فِي الْبَيْتُوتَةِ عَنْ مِنًى, يَرْمُونَ يَوْمَ النَّحْرِ, ثُمَّ يَرْمُونَ الْغَدِ لِيَوْمَيْنِ, ثُمَّ يَرْمُونَ يَوْمَ النَّفْرِ. رَوَاهُ الْخَمْسَةُ, وَصَحَّحَهُ التِّرْمِذِيُّ, وَابْنُ حِبَّانَ.
From ʿAsim ibn ʿAdi, may Allah be pleased with him, that the Messenger of Allah ﷺ gave the camel herders permission not to spend the night at Mina: they stone on the day of sacrifice, then stone the next day for two days, then stone on the day of departure. Reported by the five; at-Tirmidhi and Ibn Hibban graded it sahih.