They did not surrender to the decrees of the Egyptian king, who wanted to exterminate Jewish children, but they resisted, and with great sacrifice, a generation of Jewish children who afterward proclaimed 'We will do and we will hear' and accepted the Torah.
https://www.torahrecordings.com/rebbe/igroskodesh/012/004/4058