Making up the obligatory fasts and the voluntary fasts
Question: What is the ruling for a person who owes make-up fasts of Ramadan to observe voluntary fasts, such as the six fasts of Shawwal, the fasts of the first ten days of Dhul-Hijjah, and the fast of Ashura?
Answer: According to the most correct opinion of the scholars, the one who owes make-up fasts of Ramadan must make up the Ramadan fasts before the voluntary fasts, because the obligatory acts are more important than the voluntary ones.
Reference: Majmu’ Fatawa Ibn Baz 392/15