[Machine] The Prophet ﷺ passed by a man who was lighting a fire under a cooking pot. The Prophet asked him, "Has your brain (i.e. mind) ordered you to do this?" The Prophet then ordered him to shave his hair and fast for three days, or to feed six poor people, or to sacrifice an animal. Sufyan said, "This verse was revealed: 'So whoever among you is ill or has an ailment of the head.'"
مَرَّ بِهِ النَّبِيُّ ﷺ وَهُوَ يُوقِدُ تَحْتَ قِدْرٍ فَقَالَ «آذَتْكَ هَوَامُّ رَأْسِكَ؟» فَأَمَرَهُ النَّبِيُّ ﷺ أَنْ يَحْلِقَ وَيَصُومَ ثَلَاثَةَ أَيَّامٍ أَوْ يُطْعِمَ فَرَقًا بَيْنَ سِتَّةِ مَسَاكِينٍ أَوْ يَنْسُكَ قَالَ سُفْيَانُ فَنَزَلَتْ هَذِهِ الْآيَةُ {فَمَنْ كَانَ مِنْكُمْ مَرِيضًا أَوْ بِهِ أَذًى مِنْ رَأْسِهِ}