If ‘Show Message Preview’ is enabled in Notification settings, then a part of the message might be visible on the lock screen.