وَعَن عبَادَة بن الصَّامِت قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسلم يَقُول «إِنَّ أَوَّلَ مَا خَلَقَ اللَّهُ الْقَلَمُ فَقَالَ اكْتُبْ فَقَالَ مَا أَكْتُبُ قَالَ اكْتُبِ الْقَدَرَ مَا كَانَ وَمَا هُوَ كَائِنٌ إِلَى الْأَبَدِ» . رَوَاهُ التِّرْمِذِيُّ وَقَالَ هَذَا حَدِيثٌ غَرِيبٌ إِسْنَادًا
Translation

Abu Musa reported that he heard God’s messenger say, “God created Adam from a handful which he took from the whole of the earth; so the children of Adam are in accordance with the earth, some red, some white, some black, some a mixture, also smooth and rough, bad and good.” Ahmad, Tirmidhi and Abu Dawud transmitted it.