Fast 3 days during الحج (before the Day of عرفة if possible) and 7 days after returning home — totaling 10 days — as القرآن explicitly provides this alternative for those who cannot afford the sacrifice.
The القرآن provides a clear alternative for those who cannot afford the واجب sacrifice: 'And whoever cannot find [a sacrificial animal] — then a fast of three days during الحج and of seven when you have returned [home]. Those are ten complete [days]' (القرآن 2:196). This applies to الحجاج performing الحج Tamattu or Qiran who lack the financial means for the sacrifice.
The 3 days of fasting during الحج should ideally be completed before the Day of عرفة. Scholars recommend fasting on the 6th, 7th, and 8th of ذو الحجة. It is strongly مستحب NOT to fast on the Day of عرفة (9th), following النبي's practice. If the 3 days were not completed before Eid, the Shafi'i and Hanbali schools allow fasting during the Days of التشريق (11th-13th), while the Hanafi and Maliki schools do not permit fasting on those days.
The remaining 7 days are fasted after returning home. They do not need to be consecutive عند جمهور العلماء, though fasting them consecutively is preferred. The القرآن emphasizes: 'Those are ten complete days' — indicating the total must reach 10. This fasting alternative is only for those who genuinely cannot afford the sacrifice. If a الحاج can afford it but chose not to sacrifice, they should arrange the sacrifice even after returning home, as the fasting is meant for genuine financial inability.
فَمَن لَّمْ يَجِدْ فَصِيَامُ ثَلَاثَةِ أَيَّامٍ فِي الْحَجِّ وَسَبْعَةٍ إِذَا رَجَعْتُمْ تِلْكَ عَشَرَةٌ كَامِلَةٌ
And whoever cannot find a sacrificial animal — then a fast of three days during الحج and of seven when you have returned home. Those are ten complete days.
Source: Ibn Kathir, Tafsir al-القرآن al-Azim; al-Nawawi, Al-Majmu
And whoever cannot find a sacrificial animal — then a fast of three days during الحج and of seven when you have returned home. Those are ten complete days.
Al-Baqarah (2:196)