And We appointed for them companions who made attractive to them what was before them and what was behind them [ of sin ] , and the word has come into effect upon them among nations which had passed on before them of jinn and men . Indeed , they [ all ] were losers .