Minecraft wiki entry for Bed, associated text: If the bed is destroyed while the player is in it, due to for example an explosion or by another player, the player wakes prematurely and the night does not pass.