Both are correct.
They slept on the same bed. <on the mattress>
They slept in the same bed. <inside the covers/sheets>
Which is correct?What's the different
They slept on the same bed
They slept in the same bed
Both are correct.
They slept on the same bed. <on the mattress>
They slept in the same bed. <inside the covers/sheets>