We assigned to them companions who made their doings appear fair to them . But the same decree [ of punishment ] proved true against them , which had proved true against nations of jinn and mankind who passed away before them .