Ezekiel 23:48
Thus will I cause lewdness to cease out of the land, that all women may be taught not to do after your lewdness.
Cross-reference
Ezekiel 23:27 similarly declares an end to lewdness, reinforcing the same judgment within this allegory.
Ezekiel 23:10 describes the judgment on Oholah, which verse 48 says will serve as a lesson to all women. Direct internal example.
Ezekiel 5:15 says Jerusalem will be a warning to nations, directly paralleling the 'all women may take warning' purpose here.
Ezekiel 16:41 says 'I will make you stop playing the whore' before many women, a close parallel to this verse's warning purpose.
Ezekiel 36:25 offers cleansing through water, contrasting with the punitive end to lewdness here—judgment versus restoration.
Ezekiel 22:15 speaks of consuming uncleanness through scattering, a parallel goal of purifying Israel but by different means.
Deuteronomy 13:11 states 'all Israel shall hear and fear' after punishing evil, mirroring the deterrent warning here.
1 Corinthians 10:6-11 explicitly says OT judgments are examples for our warning. This verse makes the women an example to teach others.
2 Peter 2:6 cites Sodom as an example of judgment to warn the ungodly. Similarly, this judgment is meant to be a warning example.