Jeremiah 51:9
7 Babylonia had been a gold cup in the Lord’s hand; she had made the whole world drunk. The nations had drunk from the wine of her wrath, so they have all gone mad. 8 But suddenly Babylonia will fall and be destroyed. Cry out in mourning over it! Get medicine for her wounds; perhaps she can be healed! 9 Foreigners living there will say, ‘We tried to heal her, but she could not be healed. Let’s leave Babylonia and each go back to his own country. For judgment on her will be vast in its proportions. It will be like it is piled up to heaven, stacked up into the clouds.’ 10 The exiles from Judah will say, ‘The Lord has brought about a great deliverance for us! Come on, let’s go and proclaim in Zion what the Lord our God has done!’
Revelation 18:5
4 Then I heard another voice from heaven saying, “Come out of her, my people, so you will not take part in her sins and so you will not receive her plagues, 5 because her sins have piled up all the way to heaven and God has remembered her crimes. 6 Repay her the same way she repaid others; pay her back double corresponding to her deeds. In the cup she mixed, mix double the amount for her.
Notes and References
"... Interestingly, the book of Revelation has many quotations or allusions to the book of Jeremiah, including about a dozen texts from chapters 50–51. Revelation 18:2-19 picks up on the theme of wailing over Babylon (= Rome) in a taunting dirge for the fallen city. Just as with Israel, Christians are summoned to flee the city (Revelation 18:4). The image of drinking/pouring out the wine of God’s wrath, used in 51:7 (see also 25:15-29) is utilized in Revelation 18:3. In Revelation 18:5, the sins of Babylon are piled so high that they have reached heaven and God remembers their iniquities; in Jeremiah 51:9, it is their judgment (= the effects of their sins) that has reached the heavens. The image of Babylon as a volcano (51:25-26) is also picked up in Revelation 18:8-9. The image of the harvest in 51:22 is referred to in Revelation 14:14-15. The announcement of judgment on Babylon that its sea would become dry (51:36) may be echoed in the promise of Revelation 21:1 that the sea would be no more. The rejoicing of heaven and earth at the defeat of Babylon (51:48) is appropriated by Revelation 18:20. The symbolic act of Seraiah in throwing Jeremiah’s scroll into the Euphrates (51:59-64) is adapted in Revelation 18:21 ..."
Fretheim, Terence E. The Smyth & Helwys Bible Commentary: Jeremiah (p. 647) Smith & Helwys, 2002