All your allies will force you to the border; your friends will deceive and overpower you; those who eat your bread will set a trap for you, but you will not detect it.
NIV
All the men of your confederacy (your allies) have brought you on your way, even to the border; the men who were at peace with you have deceived you and prevailed against you; they who eat your bread have laid a snare under you. There is no understanding [in Edom, or] of it.
AMP
All the men of thy confederacy have brought thee even to the border: the men that were at peace with thee have deceived thee, and prevailed against thee; that they eat thy bread have laid a wound under thee: there is none understanding in him.
KJV
Joseph said to them, "What is this you have done? Don't you know that a man like me can find things out by divination?"
NIV
Joseph said to them, What is this thing that you have done? Do you not realize that such a man as I can certainly detect and know by divination [everything you do without other knowledge of it]?
AMP
And Joseph said unto them, What deed is this that ye have done? wot ye not that such a man as I can certainly divine?
KJV