Does Sleeping Break Your Fast?
Question

If a person stays up all night during Ramadan, then he prays Fajr and sleeps until Zuhr, and prays and then sleeps until ‘Asr, and prays then sleeps until the time of iftar, is his fasting valid?
Praise be to Allah.Does sleeping break your fast?
Yes, his fasting is valid. 
The scholars agreed that if a fasting person wakes up during the day, even if it is for a single moment, then his fasting is valid, but if he does not wake up and he sleeps all day whilst fasting , then the majority of scholars say that his fasting is still valid, because sleep does not invalidate fasting, as it does not mean that he is completely unconscious, rather if someone wakes him he will wake up. (Al-Majmu’, 6/346; al-Mughni, 4/344) 
The Standing Committee was asked about that and replied: 
“If the matter is as mentioned, then the fast is valid but for a fasting person to spend most of the day asleep is a kind of negligence on his part, especially since the month of Ramadan is a special time and the Muslim should strive to benefit from it by reading Quran a great deal, seeking provision and acquiring knowledge. 
And Allah is the Source of strength. May Allah send blessings and peace upon our Prophet Muhammad and his family and Companions.” (Al-Lajnah al-Daimah li’l-Buhuth al-‘Ilmiyyah, 10/212)
Tips for those who sleep a lot while fasting
The following is the advice of Shaykh ‘Abd al-‘Aziz ibn Baz (may Allah have mercy on him) to those who are fasting and others to make the most of their time and not to waste it sleeping. He said: 
“There is nothing wrong with sleeping during the day or the night, so long as that does not lead to missing out on any of the obligatory duties or committing any haram action. What is prescribed for the Muslim, whether he is fasting or not, is not to stay up late at night, and to hasten to sleep after doing whatever he is able to of qiyam al-layl , then he should get up for sahur if it is Ramadan, because eating sahur is a confirmed Sunnah as the Prophet (peace and blessings of Allah be upon him) said, “Eat sahur, for in sahur there is barakah (blessing).” (Sahih – agreed upon) 
And the Prophet (peace and blessings of Allah be upon him) said: “The thing that differentiates between our fasting and the fasting of the People of the Book is eating sahur.” (Narrated by Muslim in his Sahih) 
Those who are fasting and others must also adhere to offering the five daily prayers in congregation, and avoid being distracted from them by sleep or anything else. Those who are fasting and others must also do all their duties on time for the government or other duties, and not be distracted from them by sleep or anything else. And they must strive to seek halal provision which they and their dependents need, and not be distracted from that by sleep or anything else. 
In conclusion, my advice to everyone, men and women, those who are fasting and those who are not, is to fear Allah in all situations, and to continue to perform duties on time in the manner enjoined by Allah, and to avoid being distracted from that by sleep or any other permissible thing etc. If the thing that distracts them from that is an act of disobedience towards Allah, then the sin is greater and more serious. 
May Allah guide the Muslims, enable them to understand their religion and make them steadfast in adhering to the truth, and guide their leaders, for He is Most Generous, Most Kind.” (Fatawa al-Shaykh Ibn Baz, 4/15)
And Allah knows best.