Short answer
No. Rubbing oil, moisturiser, sunscreen, hair oil or ointment into your skin or hair does not break the fast, even though some of it is absorbed. The fast is broken by something reaching the stomach or head through the mouth, nose or another open passage, not through the pores.
Putting oil, cream, lotion or ointment on the skin or hair does not break the fast, and neither does the absorption of its contents through the skin. It becomes a problem only if you swallow some of it.
The four schools agree on this.
Explanation
The Quran limits the fast to staying away from eating, drinking and intimacy from true dawn to sunset. What breaks it is something entering the body through a normal passage, mainly the mouth, throat or nose. The skin is not one of those passages. A Companion reported seeing the Prophet ﷺ pour water over his head while fasting, because of thirst or heat. So wetting and cooling the skin does not harm the fast.
This covers:
- Body lotion, face cream, sunscreen and moisturiser.
- Hair oil and conditioner, as long as none goes in your mouth.
- Massage oil, ointments and pain-relief gels, even if you can smell or sense them afterwards.
- Medicated patches and creams on the skin. See nicotine patches for a similar question.
Be careful with lip products. If you can taste a lip balm or lipstick and it goes down, remove it; see lipstick and lip balm. Perfume and scented creams are covered in smelling food or perfume.
The evidence
Quran, Surah Al-Baqara 2:187
أُحِلَّ لَكُمْ لَيْلَةَ ٱلصِّيَامِ ٱلرَّفَثُ إِلَىٰ نِسَآئِكُمْ ۚ هُنَّ لِبَاسٌۭ لَّكُمْ وَأَنتُمْ لِبَاسٌۭ لَّهُنَّ ۗ عَلِمَ ٱللَّهُ أَنَّكُمْ كُنتُمْ تَخْتَانُونَ أَنفُسَكُمْ فَتَابَ عَلَيْكُمْ وَعَفَا عَنكُمْ ۖ فَٱلْـَٰٔنَ بَٰشِرُوهُنَّ وَٱبْتَغُوا۟ مَا كَتَبَ ٱللَّهُ لَكُمْ ۚ وَكُلُوا۟ وَٱشْرَبُوا۟ حَتَّىٰ يَتَبَيَّنَ لَكُمُ ٱلْخَيْطُ ٱلْأَبْيَضُ مِنَ ٱلْخَيْطِ ٱلْأَسْوَدِ مِنَ ٱلْفَجْرِ ۖ ثُمَّ أَتِمُّوا۟ ٱلصِّيَامَ إِلَى ٱلَّيْلِ ۚ وَلَا تُبَٰشِرُوهُنَّ وَأَنتُمْ عَٰكِفُونَ فِى ٱلْمَسَٰجِدِ ۗ تِلْكَ حُدُودُ ٱللَّهِ فَلَا تَقْرَبُوهَا ۗ كَذَٰلِكَ يُبَيِّنُ ٱللَّهُ ءَايَٰتِهِۦ لِلنَّاسِ لَعَلَّهُمْ يَتَّقُونَ ﴿١٨٧﴾
It has been made permissible for you the night preceding fasting to go to your wives [for sexual relations]. They are clothing for you and you are clothing for them. Allah knows that you used to deceive yourselves, so He accepted your repentance and forgave you. So now, have relations with them and seek that which Allah has decreed for you. And eat and drink until the white thread of dawn becomes distinct to you from the black thread [of night]. Then complete the fast until the sunset. And do not have relations with them as long as you are staying for worship in the mosques. These are the limits [set by] Allah, so do not approach them. Thus does Allah make clear His ordinances to the people that they may become righteous.
The fast is the period without eating and drinking, which does not include creams applied to the skin.
Sunan Abi Dawud 2365
Graded sahih... يصب على رأسه الماء وهو صائم من العطش أو من الحر ...
"He was pouring water over his head while fasting, because of thirst or because of the heat."
Pouring water on the head while fasting does not harm the fast, which shows the skin is not a route that breaks it.
Where the ruling is recorded
- al-Hidaya, Kitab al-Sawm, chapter on what breaks the fast and what does not. Oil applied to the body does not break the fast.
- Radd al-Muhtar (Ibn Abidin), Kitab al-Sawm, mufsidat al-sawm. What reaches the body through pores is not counted; only what reaches the inside through a passage.
Reviewed by Hafez Mawlana Abu Darda and Mawlana Akramul Haque Fenwi, Islamic scholars. For a more accurate answer to your own situation, consult a scholar. Quran translation by Saheeh International. Hadith: selections from sunnah.com, Arabic from the standard editions of the six books and the Muwatta, with gradings as recorded there; the English is our own rendering. Spotted a mistake? Tell us.