“If you follow My statutes and observe My commandments and perform them.”(Vayikra 26:3) Rashi ad loc asks "what is the meaning of “If you follow My statutes”? It means that you must toil in the study of Torah." שתהיו עמלים בתורה
A small community in Galicia had a most complicated halachic question. The response to this question could conceivably affect that community most profoundly. Their own Rav had left for a post in a larger community and they had not yet replaced him with another Rav. The community leaders decided that they should bring their query to none other than the world famous Gaon HoRav Meshulom Igra who was the Rav in Tismanitz at the time.
The trip entailed staying overnight in an inn. As the community heads were about to leave the inn, a young Torah scholar who had also spent the night in the same inn met them. They struck up a conversation and the Torah scholar was advised of the purpose of the trip of the community leaders. He told them that he was on his way to their community to apply for the vacant position of Rav. He therefore asked them what their halachic question was, offering that perhaps he would be able to answer them. They were reluctant to do so as they were on their way to the great Gaon Rabbi Meshulom Igra. However, they decided to present their question to him just to fulfill his request, but decided that no matter how satisfactory the answer, they would go on to ask Rabbi Meshulom Igra the question and abide by his ruling. After hearing all the details, the young Rabbi requested that they allow him a short period of time to go back to his quarters in the inn so that he may attempt to come up with a proper answer. After a short period of time he returned to them and gave a clear response, albeit quite detailed.
The communal group continued on their trip and presented their complicated question to Rabbi Meshulom Igra. He immediately told them that the matter at hand was most complicated and required him to study many texts in depth until he would be able to formulate an answer and that it would probably take him close to three days to do this. The communal heads waited patiently and after three days the Gaon gave them his decisive response. Imagine their great shock when they heard exactly the same answer that the young scholar had given them in the inn a few days earlier. Rabbi Igra noticed their surprised look and they told him all that had transpired.
Rabbi Meshulom was so impressed by the young scholar that he decided that he must meet a Talmid Chochom of such great stature. After some inquiries he found out where the man lived. He donned his Shabbos apparel in honor of meeting such an outstanding scholar, and when Rabbi Meshulom met him, the young man responded that actually he had not worked out the answer through in depth study. Since he felt hard-pressed to find a position as a Rav and had met the communal leaders of the community to which he planned to apply, he felt this was a most unique opportunity to secure the position if he would properly answer their question. He returned to his room and with heartfelt prayers beseeched Hashem to place the correct answer into his mind. It was obvious that Hashem hearkened to his supplications.
Upon hearing this, Rabbi Meshulom Igra said a quick good-bye, adding that it is no great accomplishment to come to the correct conclusion through prayer. What Hashem wants from us is TOILING in Torah!
http://www.shemayisrael.com/parsha/fleisher/archives/bechukosai60.htm
