You are referring to this conversation between Almighty God and angels as mentioned in the holy Quran;
And [mention, O Muhammad], when your Lord said to the angels, "Indeed, I will make upon the earth a successive authority." They said, "Will You place upon it one who causes corruption therein...