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

O Prophet, when the believing women come to you pledging to you that they will not associate anything with Allah, nor will they steal, nor will they commit unlawful sexual intercourse, nor will they kill their children, nor will they bring forth a slander they have invented between their arms and legs, nor will they disobey you in what is right - then accept their pledge and ask forgiveness for them of Allah. Indeed, Allah is Forgiving and Merciful.  

O Prophet, if believing women come to you, pledging allegiance to you that they will not ascribe anything as partner to God, and that they will not steal, nor commit adultery, nor slay their children, as used to be done during the time of pagandom (jāhiliyya), when they would bury new-born girls alive, fearing ignominy and impoverishment, nor bring any lie that they have invented ˹originating˺ between their hands and their legs, that is, ˹by bringing˺ a foundling which they then ˹falsely˺ ascribe to the husband — it ˹the lie˺ is described in terms of a real child, because when a woman gives birth to a child, it falls between her hands and legs; nor disobey you in, doing, what is decent, which is that which concords with obedience to God, such as refraining from wailing, ripping apart ˹their˺ clothes ˹in grief˺, pulling out ˹their˺ hair, tearing open the front of ˹their˺ garments or scratching ˹their˺ faces, then accept their allegiance — the Prophet (s) did this ˹but˺ in words, and he did not shake hands with any of them — and ask God to forgive them; surely God is Forgiving, Merciful.
القرآن:٦٠:١٢

يَا أَيُّهَا النَّبِيُّ إِذَا جَاءَكَ الْمُؤْمِنَاتُ يُبَايِعْنَكَ عَلَىٰ أَنْ لَا يُشْرِكْنَ بِاللَّهِ شَيْئًا وَلَا يَسْرِقْنَ وَلَا يَزْنِينَ وَلَا يَقْتُلْنَ أَوْلَادَهُنَّ وَلَا يَأْتِينَ بِبُهْتَانٍ يَفْتَرِينَهُ بَيْنَ أَيْدِيهِنَّ وَأَرْجُلِهِنَّ وَلَا يَعْصِينَكَ فِي مَعْرُوفٍ ۙ فَبَايِعْهُنَّ وَاسْتَغْفِرْ لَهُنَّ اللَّهَ ۖ إِنَّ اللَّهَ غَفُورٌ رَحِيمٌ  

{يا أيها النبي إذا جاءك المؤمنات يبايعنك على أن لا يشركن بالله شيئا ولا يسرقن ولا يزنين ولا يقتلن أولادهن} كما كان يفعل في الجاهلية من وأد البنات، أي دفنهن أحياء خوف العار والفقر {ولا يأتين ببهتان يفترينه بين أيديهن وأرجلهن} أي بولد ملقوط ينسبنه إلى الزوج ووصف بصفة الولد الحقيقي، فإن الأم إذا وضعته سقط بين يديها ورجليها {ولا يعصينك في} فعل {معروف} هو ما وافق طاعة الله كترك النياحة وتمزيق الثياب وجز الشعور وشق الجيب وخمش الوجه {فبايعهن} فعل ذلك ﷺ بالقول ولم يصافح واحدة منهن {واستغفر لهن الله إن الله غفور رحيم}.