وَإِذْ قَالَ رَبُّكَ لِلْمَلَـٰٓئِكَةِ إِنِّى خَـٰلِقٌۢ بَشَرًا مِّن صَلْصَـٰلٍ مِّنْ حَمَإٍ مَّسْنُونٍ Qur’an Al-Hijr (15:28)Waith qala rabbuka lilmalaikati innee khaliqun basharan min salsalin min hamain masnoonin
This does not contradict other verses that say Adam was created out of dust and those that say he was made out of mud. Adam was created in stages: first from dust, which was later turned into mud, then clay. This is similar to saying: I made a loaf of bread out of grain, or flour, or dough.