We had assigned to them companions who embellished for them all that was before them and behind them . Thus the same decree ( of chastisement ) which had overtaken the previous generations of jinn and human beings ( also ) became due against them .