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:8236Abū Bakr b. al-Ḥārith al-Faqīh > ʿAlī b. ʿUmar > Ibn Manīʿ > Abū Bakr b. Abū Shaybah > Zayd b. al-Ḥubāb > Muʿāwiyah b. Ṣāliḥ > Mūsá b. Yazīd b. Mawhab from his father > Mālik b. Yukhāmir > Muʿādh b. Jabal > Suʾil > Qaḍāʾ Ramaḍān

[Machine] Count the inventory and fast as you wish.  

البيهقي:٨٢٣٦وَأَخْبَرَنَا أَبُو بَكْرِ بْنُ الْحَارِثِ الْفَقِيهُ أنبأ عَلِيُّ بْنُ عُمَرَ ثنا ابْنُ مَنِيعٍ ثنا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ثنا زَيْدُ بْنُ الْحُبَابِ ثنا مُعَاوِيَةُ بْنُ صَالِحٍ عَنْ مُوسَى بْنِ يَزِيدَ بْنِ مَوْهَبٍ عَنْ أَبِيهِ عَنْ مَالِكِ بْنِ يُخَامِرَ عَنْ مُعَاذِ بْنِ جَبَلٍ أَنَّهُ سُئِلَ عَنْ قَضَاءِ رَمَضَانَ فَقَالَ

أَحْصِ الْعِدَّةَ وَصُمْ كَيْفَ شِئْتَ