Making up the missed fasts of Ramadan, either on consecutive days or on separate days
Both ways are correct, as it is narrated from Ibn Abbas (may Allah be pleased with them both):
لا باس أن يفرق لقول الله تعالى ”فَعِدَّةٌ مِنْ أَيَّامٍ أَخَرَ“ [Al-Baqarah: 184]
“(If the missed fasts of Ramadan are made up not consecutively but) by fasting on separate days, there is no harm in that either, because Allah the Exalted said: ‘Complete the count from other days’ (He did not say: fast consecutively).”
[Bukhari, ta’liqat: before hadith 1950]
It is narrated from Ibn Umar (may Allah be pleased with them both) that the Prophet ﷺ was asked about making up the fasts of Ramadan, and he ﷺ said:
إن شاء فرق وإن شاء تابع
“If he wishes, he may fast on separate days, and if anyone wishes, he may fast consecutively.”
[Da’if (weak): Tamam al-Minnah: p. 423, Daraqutni: 2/193, Ibn al-Jawzi: 2/99. Hafiz Ibn Hajar (may Allah have mercy on him) declared its chain of narration da’if (weak). Talkhis al-Habir: 2/394]
Although this narration is da’if (weak), the unrestricted verse of the Qur’an فعدة من أيام أخر requires that making up the fasts in both ways is correct, because the aim is to complete the count, and that is achieved in both ways.
The narration which says:
من كان عليه صوم من رمضان فليسرده ولا يقطعه “Whoever owes fasts of Ramadan should fast them consecutively and not separately” is da’if (weak).
[Da’if (weak): Tamam al-Minnah: p. 424, Daraqutni: 2/191]