"And indeed, your Lord will gather them," He will gather the creation on the Day of Resurrection. "Indeed, He is All-Wise" in His command, "All-Knowing" of His creation.
Surat al-Hijr from verse (26) to verse (31).