A poem by Walt Whitman. it's also an important line in the movie Dead Poets Society.

it's also used to greet an extraordinary teacher.
Teacher: good afternoon.
Students: O captain, my captain!
by nobodycallsmebogyo December 27, 2022