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.
tabarani:16336Muʿādh b. al-Muthanná > Musaddad > ʿAbd al-Wārith > Ibn Abū Najīḥ > Mujāhid > ʿAbd al-Raḥman b. Abū Laylá

[Machine] The Prophet ﷺ passed by Ka'b ibn Ujrah, who was suffering from a headache. The Prophet ﷺ ordered him to shave his head. Then, revelation came to the Prophet ﷺ and he said, "If you wish, fast for three days, or if you wish, feed six poor people, or if you wish, sacrifice a sheep."  

الطبراني:١٦٣٣٦حَدَّثَنَا مُعَاذُ بْنُ الْمُثَنَّى ثنا مُسَدَّدٌ ثنا عَبْدُ الْوَارِثِ عَنِ ابْنِ أَبِي نَجِيحٍ عَنْ مُجَاهِدٍ عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي لَيْلَى قَالَ

مَرَّ النَّبِيُّ ﷺ بِكَعْبِ بْنِ عُجْرَةَ وَقَدْ آذَاهُ هَوَامُّ رَأْسِهِ فَأَمَرَهُ أَنْ يَحْلِقَ فَجَاءَهُ الْوَحْيُ فَقَالَ النَّبِيُّ ﷺ «إِنْ شِئْتَ فَصُمْ ثَلَاثَةَ أَيَّامٍ وَإِنْ شِئْتَ فَرَقًا بَيْنَ سِتَّةِ مَسَاكِينٍ وَإِنْ شِئْتَ فَاذْبَحْ شَاةً»