Revelation 17:8

The beast that you saw—it was, and now is no more, but is about to come up out of the Abyss and go to its destruction. And those who dwell on the earth whose names were not written in the Book of Life from the foundation of the world will marvel when they see the beast that was, and is not, and yet will be.
BSB · Berean Standard Bible
The beast that thou sawest was, and is not; and shall ascend out of the bottomless pit, and go into perdition: and they that dwell on the earth shall wonder, whose names were not written in the book of life from the foundation of the world, when they behold the beast that was, and is not, and yet is.
KJV · King James Version
The beast that you saw was, and is not; and is about to come up out of the abyss and to go into destruction. Those who dwell on the earth and whose names have not been written in the book of life from the foundation of the world will marvel when they see that the beast was, and is not, and shall be present.

Note TR reads “yet is” instead of “shall be present”

WEB · World English Bible
The beast that thou sawest was, and is not; and is about to come up out of the abyss, and to go into perdition. And they that dwell on the earth shall wonder, they whose name hath not been written in the book of life from the foundation of the world, when they behold the beast, how that he was, and is not, and shall come.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

beast that thou
The Roman empire was the beast, or idolatrous persecuting power, when under the Pagan emperors; it ceased to be so when it became Christian; and became so again under the Roman pontiffs, and shall "go into perdition."
Revelation 9:2; Revelation 11:7; Revelation 13:1–11
go
Revelation 17:11; Revelation 14:8–20; Revelation 16:1; Revelation 19:15–21; Revelation 20:10; Daniel 7:11, 26; Daniel 11:45; 2 Thessalonians 2:3–8
shall wonder
Revelation 13:3, 4
whose
Revelation 13:8; Revelation 20:12, 15
from
Matthew 25:34; John 17:24; Acts 15:18; Ephesians 1:4; Titus 1:2; 1 Peter 1:20
the beast that was
Revelation 13:1–4, 11, 12