From Google:
ex parte Milligan
On September 15, 1863, Lincoln imposed Congressionally-authorized martial law. The authorizing act allowed the President to suspend habeas corpus throughout the entire United States. Lincoln imposed the suspension on "prisoners of war, spies, or aiders and...