13 And now the spirit of Alma was again troubled; and he went and inquired of the Lord what he should do concerning this matter, for he feared that he should do wrong in the sight of God.
14 And it came to pass that after he had poured out his whole soul to God, the voice of the Lord came to him
When we are troubled about something, we can take it to the Lord, and when we pour out our whole soul to him, he will answer. Even though the Lord knows what we need, he waits on our faith to ask him. Elder Allan F. Packer said,
"Prayer is the most common and powerful way to invite inspiration. Merely asking a question, even in our minds, will start to open the window [of inspiration]." Allan F. Packer, “Finding Strength in Challenging Times!,” Ensign, May 2009, 17–19