Jobs was initially diagnosed with cancer in October 2003, told first (mistakenly) he had less than six months to live, so he did have a chance to contemplate his thoughts on death prior to these eloquent words spoken at Stanford.
FORBES: Steve Job's Financial Planning Advice: You Are Already Naked