The Chazen Ish’s brother stated that his brother’s wisdom came because he prayed with much concentration during the blessing for wisdom in Shemone Esray. (from Praying with Fire) The Chofetz Chaim says in the Mishna Brura that person needs to daven for success in his learning.