"Only be strong and very courageous" (Joshua 1:7). Our rabbis taught: Four things require strengthening, and these are they: Torah and good deeds, prayer, and proper conduct [derech eretz]. Torah and good deeds, from where? "Only be strong and courageous" -- be strong in Torah and courageous in good deeds. Prayer, from where? As it is said, "Hope to the LORD; be strong and let your heart take courage" (Psalms 27:14). Proper conduct, from where? "Be strong, and let us strengthen ourselves on behalf of our people" (2 Samuel 10:12).
Four Things That Require Strengthening in Life
Yalkut Shimoni on Nach 5:1
רק חזק ואמץ (יהושע א, ז). שנו רבותינו ארבעה דברים צריכים חזוק ואלו הן תורה ומעשים טובים תפלה ודרך ארץ. תורה ומעשים טובים מנין רק חזק ואמץ חזק בתורה ואמץ במעשים טובים, תפלה מנין שנאמר קוה אל ה' חזק ויאמץ לבך, דרך ארץ מנין חזק ונתחזק בעד עמנו: