SQS deltes the message after reaching the retention period. There is no way to retrieve those messages any more.
You might want to monitor the ApproximateAgeOfOldestMessage metric to avoid something like this happening in the future as described at Monitor SQS queues with CloudWatch metrics and alarms.
SQS has occasional message latencies of up to 5 minutesasked 5 months ago
SQS Message retrival after message is deletedasked 21 days ago
Run callback when SQS gets message?Accepted Answerasked 5 months ago
Reading SQS Message via Listenerasked 4 months ago
SQS not receiving SNS messageasked 3 years ago
AWS SQS Logging Message ConsumptionAccepted Answerasked a month ago
Standard SQS - Duplicate messageasked 4 months ago
SQS Not Sending Message to Queueasked 2 months ago
Multiple SQS messages of the same group in one batchAccepted Answerasked 2 months ago
Is it possible to proactively clear all SQS messages by MessageGroupId?asked 6 months ago