"Carpe Diem" is a Latin phrase meaning "seize the day." It originates from the Roman poet Horace, who used it in his *Odes*.
While Whitman was a prolific poet, he did not write the phrase itself. However, his work does often reflect themes of embracing life, present moments, and living fully, which could be interpreted as aligning with the sentiment of "Carpe Diem."