In 2 Corinthians Paul is "preaching" that the saints should separate themselves from wicked persons ("Beliar"). He seems to perhaps have in mind the Corinthians who seem to be flippant about idols because of their knowledge that idols are "nothings" and wax bold to participate in idol feasts:
ESV 1 Corinthians 8:
10 For if anyone sees you who have knowledge eating in an idol’s temple, will he not be encouraged,d if his conscience is weak, to eat food offered to idols? 11 And so by your knowledge this weak person is destroyed, the brother for whom Christ died.
So he appeals to Ezekiel 37, which he quotes:
ESV 2 Corinthians 6:
16 What agreement has the temple of God with idols? For we are the temple of the living God; as God said,
“I will make my dwelling among them and walk among them, and I will be their God, and they shall be my people. 17 Therefore go out from their midst, and be separate from them, says the Lord, and touch no unclean thing; then I will welcome you, 18 and I will be a father to you, and you shall be sons and daughters to me, says the Lord Almighty.”
However, he doesn't quote all of it. He leaves out the bits about Israel and the Promised Land:
ESV Ezekiel 37:
24“My servant David shall be king over them [the Jews], and they shall all have one shepherd. They shall walk in my rules and be careful to obey my statutes [IE: observe Torah]. 25They shall dwell in the land that I gave to my servant Jacob, where your fathers lived. They and their children and their children’s children shall dwell there forever, and David my servant shall be their prince forever. 26I will make a covenant of peace with them. It shall be an everlasting covenant with them. And I will set them in their land(g) and multiply them, and will set my sanctuary in their midst forevermore. 27My dwelling place shall be with them, and I will be their God, and they shall be my people. 28Then the nations will know that I am the LORD who sanctifies Israel, when my sanctuary is in their midst forevermore.”
g 26 Hebrew lacks in their land
Paul's "spiritualized" usage of this passage and the omission of the promise to bring the Jews back to their land and be their God forever with Messiah as their ruler is used by some to suggest a "spiritual fulfillment (ie: metaphoric)" rather than a literal one.
But then are the other verses just chaff? Is Paul playing fast and loose with the prophesy? Or is he perhaps addressing Jewish believers in Corinth and informing or reminding them of their destiny in the same way that Revelation does:
KJV Rev 21:
2 And I John saw the holy city, new Jerusalem, coming down from God out of heaven, prepared as a bride adorned for her husband. 3 And I heard a great voice out of heaven saying, Behold, the tabernacle of God is with men, and he will dwell with them, and they shall be his people, and God himself shall be with them, and be their God. ... 10 And he carried me away in the spirit to a great and high mountain, and shewed me that great city, the holy Jerusalem, descending out of heaven from God,