عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ: ((مَنْ أَدْرَكَ رَمَضَانَ وَعَلَيْهِ مِنْ رَمَضَانَ شَيْءٌ لَمْ يَقْضِهِ لَمْ يُتَقَبَّلْ مِنْهُ، وَمَنْ صَامَ تَطَوُّعًا وَعَلَيْهِ مِنْ رَمَضَانَ شَيْءٌ لَمْ يَقْضِهِ فَإِنَّهُ لَا يُتَقَبَّلُ مِنْهُ حَتَّى يَصُومَهُ))
It is narrated from Sayyiduna Abu Hurairah, may Allah be pleased with him, that the Messenger of Allah, peace and blessings be upon him, said: Whoever reaches the month of Ramadan while he still has fasts of the previous Ramadan pending to make up, then the fasts of this Ramadan will not be accepted from him. Similarly, whoever observes voluntary fasts while he still has obligatory fasts of Ramadan pending to make up, then these voluntary fasts will not be accepted until he makes up the obligatory ones.