See Notifications You Dismissed (Notification History)
Tools You'll Need
SettingsNotifications
Swiped a notification away by mistake? Android can keep a 24-hour history.
1. Samsung: Settings, Notifications, Advanced settings, Notification history, turn on.
Pixel and others: Settings, Notifications, Notification history.
2. From now on, dismissed notifications are listed there for 24 hours.
3. Tap one to open the app.
It only shows notifications that arrived after you turned it on. A WhatsApp message that was later deleted may still show here if its notification arrived first.
Turn it on as soon as you get a new phone. It's very useful for missed codes and delivery messages.