Usage patterns
〈事〉を生涯忘れないto never forget something for the rest of one's life
I will never forget his kindness for as long as I live.
生涯を〈事〉に捧げるto devote one's whole life to something
He devoted his entire life to research.
〈事〉に生涯をかけるto stake one's whole life on something
She staked her whole life on music.
生涯独身で過ごすto remain single throughout one's life
He remained single for the rest of his life.