“Oh, my Captain! my Captain! noble soul! grand old heart, after all! why should any one give chase to that hated fish!
"O Captain! My Captain!" is the title of a Walt Whitman poem referenced in Dead Poet's society. It was written in 1865 after the death of Abraham Lincoln. Moby Dick was written in 1851 and predates the Poem.