5 Therefore, he that had been appointed chief captain over the armies of the Nephites, (and his name was Zoram, and he had two sons, Lehi and Aha)–now Zoram and his two sons, knowing that Alma was high priest over the church, and having heard that he had the spirit of prophecy, therefore they went unto him and desired of him to know whither the Lord would that they should go into the wilderness in search of their brethren, who had been taken captive by the Lamanites.
This story is a great example of how a prophet can give advice about matters both temporal and spiritual. The chief captain is not sure about a risky military removal, and so he seeks the advice of the prophet of God in order to know what to do. And the Lord reveals a particular plan that is much more successful than that which would have been thought up on ones own.
It’s much easier to accept the teaching of the prophet and apostles on spiritual matters than it is on social, political, or other matters. But as Ezra Taft Benson made clear, a prophet can speak on any matter with divine authority. God can and does reveal truths which are applicable to all aspects of our life.
God is mindful of us and cares about the choices we make in life. So it shouldn’t be a surprise that he reveals truth through his Prophet that touches upon all facets of our life.