Open the Messages app
Open the conversation containing the message
Touch and hold the message you want to unsend
Tap Undo Send
Make sure you are using iMessage and the message was sent within the allowed time window
Update iPhone to the latest iOS version if Undo Send is not available
