Though it has become irrevocably associated with the series and films, the exact phrase was never actually spoken in any Star Trek television episode or film.

What's the best answer to this question: did they ever say beam me up scotty?
no