salam sharon
That story itself in the Quran is not sinful speech. The purpose of that story is to remind us about how a person can go too far and say such terrifying things. The story itself isn't sinful speech. Otherwise, "reading" it here would be a sinful act or haram ! So, "reading" about the sinful actions of those nations, is not sin by itself, unless you approve what those people did.