I'm guessing you're not thinking of Chekov's "...my god! Was anyone in here?" line from Final Frontier?
You're thinking of Generations when Kirk "died" on the Enterprise-B.
Why, yes I am. I have no idea where Final Frontier