Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran: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.  

And God has created every beast, that is, ˹every˺ animal, from fluid, ˹from˺ a sperm-drop. Among them are some that creep upon their bellies, such as snakes and reptiles, and among them are some that walk on two feet, such as human beings and birds, and among them are some that walk on four, such as ˹four-legged˺ beasts and cattle. God creates whatever He will. Truly God has power over all things.
القرآن:٢٤:٤٥

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

{والله خلق كل دابة} أي حيوان {من ماءٍ} نطفة {فمنهم من يمشي على بطنه} كالحيات والهوام {ومنهم من يمشي على رجلين} كالإنسان والطير {ومنهم من يمشي على أربع} كالبهائم والأنعام {يخلق الله ما يشاء إن الله على كل شيء قدير}.