There is nothing wrong for husband and wife to share a bed while both of them are fasting if they are sure of themselves and have no fear of being carried away by their desires to invalidate their fast.
Sheikh Ahmad Kutty, a senior lecturer and Islamic scholar at the Islamic Institute of Toronto, Ontario, Canada, states: There is nothing wrong for a husband to share the bed with his wife while both of them are fasting unless, of course, they fear that by doing so they will find themself unable to control their desires and thus be led to invalidate their fast by engaging in sexual intercourse, in which case they are best advised against it.
We read in the traditions that the Prophet (peace and blessings 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 reason for the divergent responses, Ibn `Abbas, one of the eminent Companions of the Prophet (peace and blessings be upon him) said: “The first was a young man (and the Prophet presumed that he would be carried away by his desires and thus may end up invalidating his fast by engaging in sexual intercourse), while the second was an elderly person (who he thought was in a better position to restrain himself).”
Similarly, we also read the statement of `A’ishah, the beloved wife of the Prophet (peace and blessings be upon him), that the Prophet (peace and blessings be upon him) was wont to kiss his wife while fasting, but she further added, “But who among you is able to restrain his desire as the Prophet (peace and blessings be upon him) was wont to?”
Based on the above considerations, if you are sure of yourself and have no fear of being carried away by your desires to invalidate your fast, then you are definitely allowed to sleep in the same bed with your couple while fasting.