Wisdom 19:3

3 While the Egyptians were still mourning at the graves of their dead, they forgot why all this had happened, and they foolishly decided that the people they had begged to leave were runaways. So they chased after them. They were led into this as part of the punishment they deserved, so that they would suffer the rest of the torments they were due to receive.

Wisdom 19:3 In-Context

1 But the godless continued to feel your pitiless anger until the very end. You knew what they would do before they did it.
2 You knew that even though they let your people go and made them leave quickly, they would change their minds and pursue them.
3 While the Egyptians were still mourning at the graves of their dead, they forgot why all this had happened, and they foolishly decided that the people they had begged to leave were runaways. So they chased after them. They were led into this as part of the punishment they deserved, so that they would suffer the rest of the torments they were due to receive.
5 They were to meet a strange death, while your people continued on their miraculous journey.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.