On November 2, 1863 Lincoln received an invitation to give a speech at the dedication of a military cemetery at Gettysburg, Pennsylvania.
He was not to be the main speaker. Edward Everett was invited a month before Lincoln received his inviation, leaving the President with less than two weeks to prepare his remarks.