And We have assigned them (devils) intimate companions (in this world), who have made fair-seeming to them, what was before them (evil deeds which they were doing in the present worldly life and disbelief in the Reckoning and the Resurrection, etc.) and what was behind them (denial of the matters in the coming life of the Hereafter as regards punishment or reward, etc.). And the Word (i.e. the torment) is justified against them as it was justified against those who were among the previous generations of jinns and men that had passed away before them. Indeed they (all) were the losers.
Chapter 41 Fuşşilat : Verse 25
The intimate Companions of the Idolators make Evil Actions attractive to Them
Allah says :
(who have made fair seeming to them, what was before them and what was behind them.) means, they made their deeds attractive to them in the past. As far as the future is concerned, they only see themselves as doing good, as Allah says:
(And whosoever turns away blindly from the remembrance of the Most Gracious, We appoint for him a Shaytan to be a companion for him. And verily, they hinder them from the path, but they think that they are guided aright!) (43:36-37)
(And the Word is justified against them) means, the Word of torment, just as it was justified against the nations of the past who did what they did, men and Jinn alike.
(Indeed they (all) were the losers.) means, they are all equal in terms of loss and being doomed.