Daniel 7:24
21 While I was watching, that horn began to wage war against the holy ones and was defeating them, 22 until the Ancient of Days arrived and judgment was rendered in favor of the holy ones of the Most High. Then the time came for the holy ones to take possession of the kingdom. 23 “This is what he told me: ‘The fourth beast means that there will be a fourth kingdom on earth that will differ from all the other kingdoms. It will devour all the earth and will trample and crush it. 24 The 10 horns mean that 10 kings will arise from that kingdom. Another king will arise after them, but he will be different from the earlier ones. He will humiliate three kings. 25 He will speak words against the Most High. He will harass the holy ones of the Most High continually. His intention will be to change times established by law. The holy ones will be delivered into his hand for a time, times, and half a time.
Revelation 17:12
8 The beast you saw was, and is not, but is about to come up from the abyss and then go to destruction. The inhabitants of the earth—all those whose names have not been written in the book of life since the foundation of the world—will be astounded when they see that the beast was, and is not, but is to come. 9 (This requires a mind that has wisdom.) The seven heads are seven mountains the woman sits on. They are also seven kings: 10 five have fallen; one is, and the other has not yet come, but whenever he does come, he must remain for only a brief time. 11 The beast that was, and is not, is himself an eighth king and yet is one of the seven, and is going to destruction. 12 The ten horns that you saw are ten kings who have not yet received a kingdom, but will receive ruling authority as kings with the beast for one hour.
Notes and References
"... There is a foundation for perceiving in Revelation 17:14a as an allusion to Daniel 7:21 due to the similarity in their phraseology. However, there is a notable alteration in the wording that seems to align with the types of modifications observed in 1 Enoch 90:12, 13b, and Revelation 12:7b-8a. Consequently, the messianic Lamb is depicted in an ironic manner, triumphing over the forces of the horned beast, employing the same terminology that describes the beast in Daniel chapter 7 (as well as Revelation 11:7 and 13:7a) vanquishing the saints. John appears to interpret the prophecy of the beast’s victory over the saints in Daniel 7:21 as an ironic foreshadowing of the beast's own eventual defeat by the Messiah. Hence, the beast's downfall is destined to happen through the same warlike means by which he achieved victory. The "called, chosen, and faithful" who accompany the Lamb might be envisaged as co-combatants in this triumph, potentially symbolizing the vindication of the persecuted saints mentioned in Daniel 7:21. In summary, Revelation 17:14a should be recognized as utilizing Daniel 7:21 with polemical irony and as a deliberate theological expansion of the references to Daniel 7:21 found in Revelation 11:7, 12:7b-8a, and 13:7a ..."
Beale, G. K. The Use of Daniel in Jewish Apocalyptic Literature and in the Revelation of St. John (p. 273) Wipf & Stock, 1984