grasp at straws
To make a desperate attempt to salvage a bad situation.
-idioms by The Free Dictionary
Matthew 7:22-23 BSB
22Many will say to Me on that day, ‘Lord, Lord, did we not prophesy in Your name, and in Your name drive out demons and perform many miracles?’
23Then I will tell them plainly, ‘I never knew you; depart from Me, you workers of lawlessness!’