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:43:12

And who created the species, all of them, and has made for you of ships and animals those which you mount.  

and Who created the pairs, the species, all of them, and made for you ships and cattle, such as camels, on which you ride (the referential pronoun has been omitted here for brevity; it is genitive in the case of the first, that is, fīhi ˹sc. tarkabūna fīhi, ‘you ride in them’˺ and accusative in the case of the second ˹sc. tarkabūnahā, ‘you ride them’˺),
القرآن:٤٣:١٢

وَالَّذِي خَلَقَ الْأَزْوَاجَ كُلَّهَا وَجَعَلَ لَكُمْ مِنَ الْفُلْكِ وَالْأَنْعَامِ مَا تَرْكَبُونَ  

{والذي خلق الأزواج كلها وجعل لكم من الفلك} السفن {والأنعام} كالإبل {ما تركبون} حذف العائد اختصاراً، وهو مجرور في الأول، أي فيه منصوب في الثاني.