וַיְהִי֩ בַיּ֨וֹם הַשְּׁלִישִׁ֜י בִּֽהְיוֹתָ֣ם כֹּֽאֲבִ֗ים וַיִּקְח֣וּ שְׁנֵֽי־בְנֵי־יַ֠עֲקֹב שִׁמְע֨וֹן וְלֵוִ֜י אֲחֵ֤י דִינָה֙ אִ֣ישׁ חַרְבּ֔וֹ וַיָּבֹ֥אוּ עַל־הָעִ֖יר בֶּ֑טַח וַיַּֽהַרְג֖וּ כָּל־זָכָֽר׃
And it was on the third day, when they were in pain, that two of the sons of Yaakov, Shimon and Levi, brothers of Dinah, each took his sword and came upon the city securely, and they killed every male.
Torah Temimah points to Bereshit Rabbah 80:10 (continuation).
Sefaria · Bereshit Rabbah 80:10
ויבואו על העיר בטח — בטוחים היו בכוחם.
“And they came upon the city securely” — they were confident in their strength.
The Midrash notes the confidence with which the two brothers entered the city.
Derash on the manner of the attack (Bereshit Rabbah).
Shimon and Levi entered the city with confidence in their ability to overcome it.