"She sent and summoned Barak" (Judges 4:6). What was Barak's standing alongside Deborah? They said: Barak served the elders all the days of Joshua, and continued serving them after Joshua's death; therefore they brought him and set him beside Deborah. By what means does the Holy One, blessed be He, save Israel? By people who rise early and stay late at the house of prayer and the house of study, and who occupy themselves with Torah every single day continually. And what was the standing of the tribes of Zebulun and Naphtali, that so great a deliverance came through them? They said: Naphtali served our father Jacob, and Zebulun served Issachar and became a host providing for him. And because Barak trusted in the God of Israel and believed in Deborah's prophecy, she gave him a share in the song, as it is said, "Then sang Deborah and Barak" (Judges 5:1). And what was the standing of Jael, that so great a deliverance came through her? They said: she was a worthy woman who did the will of her husband. From here they said: there is no worthy woman among women except a woman who does the will of her husband.
How Service to Torah Brought Barak and the Tribes Their Victory
Yalkut Shimoni on Nach 42:12
ותשלח ותקרא לברק וכי מה טיבו של ברק אצל דבורה אלא אמרו ברק שמש את הזקנים כל ימו יהושע וחזר ושמש אחר מיתתו לפיכך הביאוהו ונתנוהו אצל דבורה. במי הקב"ה מושיע את ישראל בבני אדם שמשכימין ומעריבין לב"ה ולבית המדרש ועוסיקין בתורה בכל יום תמיד. וכי מה טיבו של שבט זבולו ונפתלי שבאת תשועה גדולה על ידיהם אמרו נפתלי שמש את יעקב אבינו וזבולו שמש את יששכר ונעשה לו אכסניא. ועל שבטח ברק באלהי ישראל והאמין בנבואתה של דבורה חלקה לו בשירה שנאמר ותשר דבורה וברק. וכי מה טיבה של יעל שבאת תשועה גדולה על ידה אמרו אשה כשרה היתה ועושה רצון בעלה מכאן אמרו אין לך אשה כשרה בנשים אלא אשה שהיא עושה רצון בעלה: