● If a person missed fasts due to a valid excuse, they may fast the six days of Shawwal before making up for Ramadan fasts, because qada (makeup fasts) in this case can be delayed, while the six days of Shawwal must be observed within Shawwal.
● However, if a person missed fasts without a valid excuse, they must make up for the missed fasts immediately after Eid, before fasting the six days of Shawwal. If they fast the six days first, it is valid, but they must still make up for the missed Ramadan fasts afterward.
It is also permissible to combine the intention of qada (makeup fasts) and the six days of Shawwal in one fast. However, it is better to fast them separately, as this increases the reward and avoids scholarly disagreement regarding combining intentions.