- You may also be looking for the episode "The Raven".
The Raven was a famous poem by Earth poet Edgar Allan Poe written in the mid 19th century, featuring a raven.
When he was taking command of the USS Enterprise in 2266, Charlie Evans forced Commander Spock to recite the first two lines of the poem:
- Once upon a midnight dreary
- while I pondered, weak and weary... (TOS: "Charlie X")