Numbers 25:9
And those that died in the plague were twenty and four thousand.
And those that died in the plague were twenty and four thousand. The apostle says 23,000 1 Corinthians 10:8. Moses includes those that were hanged against the sun, in the time of the plague, as well as those that were taken off by it, even all that died on this account; the apostle only those that "fell", which cannot with propriety be said of those that were hanged, who might be 1000 and so their numbers agree; but of this and other ways of removing this difficulty
See Gill on "1 Corinthians 10:8".