Have you ever felt absolutely certain that things were going to go your way, only to watch everything fall apart? Obviously this happens in places like elections, business deals, and other plans for our life. It also happens with ministries, when churches decide to build a bigger church building, or a certain piece of property, only to watch the funding dry up or the deal fall through.
The first mistake the Israelites made was assuming God was on their side, even though they had removed themselves from God's side. The two sons of Eli were wicked men, and God had already pronounced judgement upon them. And while the passage doesn't specifically mention it, the Israelites often lost in battle when the people were worshipping idols and committing other wicked acts. Despite the sin in the camp, the people assumed that by carrying God's ark with them to battle that God would be obligated to take their side. But Galatians 6:7 teaches us that "God will not be mocked". In other words, God will not be some garment that we can put on and off whenever it's convenient for us.
The other mistake they made was going out to war apart from God's direction and blessing. The preceding chapter informs us that the "word from the Lord was rare in those days; visions were infrequent." (1 Sam 3:1) God's people didn't need to pray about common daily tasks such as going to work or doing laundry, but before an important, life-risking endeavor such as going into battle they should have made sure they were right with God and sought His direction and blessing. But chapter 4 starts with, "Israel went out to meet the Philistines in battle". No prayer, no repentance, just a march into danger. We see this same mistake being made later on, when King Saul doesn't wait for Samuel's arrival, but gets impatient and offers the sacrifice himself, costing himself his throne. (1 Sam 13)
When we are deciding to do something risky in our personal lives or as the business of the church, we should also consider if we're guilty of these two mistakes. Do we assume God is on our side despite allowing sin to run free in our midst or our leadership? Are we just doing what seems best according to our human reasoning?