Surah An-Noor

24:45

وَٱللَّهُ خَلَقَ كُلَّ دَآبَّةٍۢ مِّن مَّآءٍۢ ۖ فَمِنْهُم مَّن يَمْشِى عَلَىٰ بَطْنِهِۦ وَمِنْهُم مَّن يَمْشِى عَلَىٰ رِجْلَيْنِ وَمِنْهُم مَّن يَمْشِى عَلَىٰٓ أَرْبَعٍۢ ۚ يَخْلُقُ ٱللَّهُ مَا يَشَآءُ ۚ إِنَّ ٱللَّهَ عَلَىٰ كُلِّ شَىْءٍۢ قَدِيرٌۭ

Allah has created every [living] creature from water. And of them are those that move on their bellies, and of them are those that walk on two legs, and of them are those that walk on four. Allah creates what He wills. Indeed, Allah is over all things competent.

Tafsir 24:45

And Allah has created everything that walks on the face of the earth from a drop of sperm. Some walk crawling on their bellies, i.e. snakes, while some walk on two feet, i.e. humans and birds, while others walk on four legs, i.e. livestock. Allah creates whatever He wishes, including things mentioned and unmentioned. Indeed, He is capable of everything; Nothing is outside His ability.