For the life of (someone)

Even if one’s life were threatened (used with a negative and usually used when trying to remember something).

For the life of me I could not remember where I put my house keys.