Mosiah 7:29 For behold, the Lord hath said: I will not asuccor my people in the day of their transgression; but I will hedge up their ways that they prosper not; and their doings shall be as a bstumbling block before them.
The people of Limhi had gone through a lot of trials, which they brought upon themselves through transgression. Sometimes people think they can break the commandments and the Lord is supposed to still grant their every wish and help them along. People think God is some kind of good fairy who only wants them to be happy. Well, He does want us to be happy, but not like spoiled children who get so much candy they get a tummy-ache. He wants us to be happy because we're being obedient and growing to be responsible adults.
The people of Limhi had been very wicked under King Noah's reign and when they tried to throw off the yoke of the Lamanites the Lord was slow to hear their cries. They had to repent and truly humble themselves and prove their obedience before he came to their assistance.
However, I've observed that even when people are really in the depths of sin that the Lord sends promptings and nudges to their minds and hearts to tell them that they need to change. He never gives up on us or abandons us. There is always a way back.