1

Tap your profile picture, and then select Settings > Notifications > Messaging.

2

Turn off the Show Message Preview toggle.