Why was there no warning before the plague of darkness?
Rav Yehuda Lubart explains that darkness was itself a warning rather than a punishment of the same kind as the other plagues. It exposed Pharaoh's spiritual blindness and called on him to recognize what was happening before the death of the firstborn. This also explains the Midrash about the angels' unanimous agreement: since it was a warning, there was no need to debate whether the punishment was proportionate.
Quote from the source«It was the warning!»
- Author
- Rav Yehuda Lubart
- Source
- Parsha.net — Bo81, p. 3