Expected behaviour: Sleeping in a bed with the gamerule “Skip night by sleeping” turned OFF would show a screen with the message “No amount of rest can pass this night“.
Actual behaviour: Sleeping in a bed with the gamerule off (both in singleplayer or multiplayer) displays the message “The 'Skip night by sleeping' setting is turned OFF. Turn it ON under advanced settings in edit world.“
On Java edition, the expected message is the one displayed and that same message also showed up on Bedrock edition during the implementation of the sleep percentage feature. But the current message is quite intrusive to gameplay and really breaks immersion. It assumes that the player hasn’t intentionally turned the setting off.
Intentional change per the changelog: