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.
bayhaqi:8025Abū Bakr Aḥmad b. al-Ḥasan al-Qāḍī And Ghayruh > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-Rabīʿ b. Sulaymān > al-Shāfiʿī

[Machine] Whoever vomits while fasting must make up for it, and whoever involuntarily vomits does not need to make it up. This is what Malik informed us, on the authority of Nafi', on the authority of Ibn Umar.  

البيهقي:٨٠٢٥أَخْبَرَنَا أَبُو بَكْرٍ أَحْمَدُ بْنُ الْحَسَنِ الْقَاضِي وَغَيْرُهُ قَالُوا ثَنَا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ أنبأ الرَّبِيعُ بْنُ سُلَيْمَانَ أنبأ الشَّافِعِيُّ قَالَ

وَمَنْ تَقَيَّأَ وَهُوَ صَائِمٌ وَجَبَ عَلَيْهِ الْقَضَاءُ وَمَنْ ذَرَعَهُ الْقَيْءُ فَلَا قَضَاءَ عَلَيْهِ وَبِهَذَا أَخْبَرَنَا مَالِكٌ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ