
The opinion of the court was written by Chief Justice Roger B. Taney, and it stirred debate. The decision was 7–2, and every Justice wrote a separate opinion. After the Supreme Court had heard arguments in the case but before it had issued a ruling, President-elect James Buchanan wrote to his friend, U.S. Supreme Court Associate Justice John Catron, asking whether the case would be decided by the U.S. Supreme Court before his inauguration in March 1857. Buchanan hoped the decision would quell unrest in the country over the slavery issue by issuing a ruling that put the future of slavery beyond the realm of political debate.
Buchanan also lobbied Associate Justice Robert Cooper Grier, a Northerner, to join the Southern majority to prevent the appearance that the decision was made along sectional lines. This would be considered highly unethical today. Even under the more lenient standards of that century, Buchanan's applying such political pressure to a member of a sitting court would have been seen as improper. Republicans claimed that Chief Justice Taney had whispered in Buchanan's ear prior to Buchanan's declaring, in his inaugural address, that the slavery question would "be speedily and finally settled" by the Supreme Court.
Here is what Buchanan's biographer Philip S. Klein wrote about this incident in his 1962 biography of Buchanan called President James Buchanan: A Biography at page 269:
Buchanan had expected to defer the second great task, dealing with slavery, until after the inauguration. But during February he was drawn into a correspondence which gave him hope that part of the problem might be solved at a stroke. While in Washington ge learned that the Supreme Court was nearly ready to bring in a decision on the Dred Scott case. Eager to have the backing of the court, he wrote to Justices John Catron and Robert Grier about the wisdom of having the Supreme Court issue a through expository opinion on the power of Congress over slavery in the territories. Buchanan knew what the majority decision would be - that Scott had no right to sue because he was not a citizen - and he knew that two dissenting justices would prepare a statement supporting their views. Should not the majority do likewise, and make explicit that Congress had no power over slavery in the territories; therefore the Missiouri Compromise had been unconstitutional? Buchanan strongly urged this action as the best possible way to get the slavery debate out of Congress and settle once and for all the sectional contention. If the country was so far gone that it would attack the Supreme Court, then the union was already cracked beyond repair.

He later wrote about this issue again, at pages 271-2, in the context of Buchanan's inauguration:
At the Capitol, the group which was to share the inauguration platform gathered first in the Senate Chamber where Vice-President Breckinridge took the oath of office. All then filed out onto the stand in front of the east portico. In the shuffle of getting seated, Buchanan and Chief Justice Taney met momentarily at the front of the rail and had a brief chat. Some of those who witnessed this exchange swore to their dying day that at this very moment, Taney told Buchanan how the Supreme Court would decided the Dred Scott case, and that Buchanan instantly added this information to his address. What they did not know was that he had more than a week before learned the news from one of the justices.