The best example of alliteration from the lines of poetry in “The Raven” by Edgar Allan Poe is:
While I nodded, nearly napping, suddenly there came a tapping
In this line, the repetition of the 'n' sound in "nodded," "nearly," and "napping," demonstrates alliteration effectively.