he lived only to study torah and to keep the law , and to pray , and to advise those who came to him daily , those who believed he could see into souls and make miracles , those for whom he was the instrument of god .