Quran 7:172 — The Purgatory (Al-A'araf)
Recall that your Lord summoned all the descendants of Adam, and had them bear witness for themselves: "Am I not your Lord?" They all said, "Yes. We bear witness." Thus, you cannot say on the Day of Resurrection, "We were not aware of this."
[7:171] We raised the mountain above them like an umbrella, and they thought it was going to fall on them: "You shall uphold what we have given you, strongly, and remember the contents thereof, that you may be saved."
[7:173] Nor can you say, "It was our parents who practiced idolatry, and we simply followed in their footsteps. Will You punish us because of what others have innovated?"