John Buford said this quote

We entered Gettysburg in the afternoon, just in time to meet the enemy entering the town, and in good season to drive him back before his getting a foothold.