This was the only way to identify the enemy.
God's children are very distinct and even though the devil may try to confuse us, God will reveal the devil's wiles and protect us from any evil.
They needed to know how to speak the word to get into the Promise Land. There was a review and if you said Sibboleth instead of Shibboleth you didn’t make it.
“Then they said, Say to him Shibboleth: and he would say Sibboleth: for he could not feign to pronounce it right. Then they’d take them and kill them at the fords of the Jordan:
They didn’t have military uniforms that differed. And so they’re trying to find out who is a Gileadite (friend, family) and who is Ephraimite (a foe). You know what they said? They devised a test.
They dressed the same. You couldn’t really tell them apart from looking. And you know, they crossed back and forth on this crossing point in the Jordan River and they said, “How do I know that you’re not escaping and you are the ones who are attacking and fighting us?”
And the Gileadites seized the fords of Jordan before the Ephraimites arrived: and when any of the Ephraimites who had escaped said, Let me cross over; the men of Gilead would say to him, Are you an Ephraimite?” Now why did they have to ask that? Well they all looked the same.
“So,” verse 4, “Now Jephthah gathered all of the men of Gilead, who fought against Ephraim: and all the men of Gilead defeated Ephraim, because they said, You Gileadites are fugitives of Ephraim among the Ephraimites, and among the Manassites.
KJV Judges 12:6 - Then said they unto him, Say now Shibboleth: and he said Sibboleth: for he could not frame to pronounce it right. Then they took him, and slew him at the passages of Jordan: and there fell at that time of the Ephraimites forty and two thousand.