Rev Revelation, chapter Revelation of Jesus Christ, chapter 20
The angel threw him into the Abyss and shut it and sealed it over him, so that he would no longer be able to deceive the nations until the thousand years were over. After that he has to be set free for a little while.