Answer
In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
In Islam, spouses are allowed to share a bed while fasting as long as they can control their desires and avoid actions that nullify the fast, such as intercourse. The Prophet Muhammad (peace be upon him) demonstrated self-control in such situations, but each individual must assess their own ability to restrain themselves. If one fears losing control, it is advisable to avoid sleeping in the same bed during fasting hours.
Responding to your question, Sheikh Ahmad Kutty, a senior lecturer and an Islamic scholar at the Islamic Institute of Toronto, Ontario, Canada, states:
Is It Allowed for Spouses to Share a Bed While Fasting?
There is nothing wrong with you sharing the bed with your spouse while both of you are fastingโunless, of course, you fear you wonโt be able to control your desires and will thus end up nullifying your fasts through sexual intercourse, in which case you are best advised against it.
The Prophetโs Guidance on Physical Intimacy During Fasting
We read in the traditions that the Prophet (peace be upon him) was once asked by a man whether he could kiss his wife while fasting, to which he replied, โNo,โ but when another man asked him the same question, he told him, โYes.โ
Explaining the divergent responses, Ibn Abbas, one of the eminent Companions of the Prophet (peace be upon him), said, โThe first was a young man (and the Prophet presumed he would be carried away by his desires), while the second was an elderly person.โ (At- Tabarani, al-Bayhaqi and others)
Can Kissing or Touching Break Your Fast?
Similarly, we also read the statement of Aishah, the beloved wife of the Prophet, who said that the Prophet used to kiss his wives while fasting, but then added, โBut who among you can restrain his desire like the Prophet used to?โ (Ibn Hibban)
Based on the above considerations, if you are sure that you are in control of yourself and have no fear of getting carried away by your desires and thus invalidating your fast, then you are certainly allowed to sleep in the same bed with your spouse while fasting.
Almighty Allah knows best.