[Machine] The Messenger of Allah ﷺ saw a lice falling on his face, so he asked, "Does your lice bother you?" He (the person) replied, "Yes." So the Prophet ordered him to shave (his head), while they were still in Hudaybiyah and he did not inform them that they would perform Umrah with it (the shaved hair), and they still had hopes to enter Makkah. Then Allah revealed the verse, "Fidya (ransom) is either fasting or charity" (Quran 2:196), a difference between feeding six poor persons or sacrificing a sheep, and the sacrifices are to be done at Makkah.
أَنَّ رَسُولَ اللهِ ﷺ رَأَى قَمْلَةً سَقَطَتْ عَلَى وَجْهِهِ فَقَالَ أَيُؤْذِيكَ هَوَامُّكَ؟ قَالَ نَعَمْ فَأَمَرَهُ أَنْ يَحْلِقَ وَهُوَ بِالْحُدَيْبِيَةِ وَلَمْ يُبَيِّنْ لَهُمْ أَنَّهُمْ يَحِلُّونَ بِهَا وَهُمْ عَلَى طَمَعٍ أَنْ يَدْخُلُوا مَكَّةَ فَأَنْزَلَ اللهُ {فِدْيَةٌ مِنْ صِيَامٍ أَوْ صَدَقَةٍ} فَرَقٌ بَيْنَ سِتَّةِ مَسَاكِينَ أَوْ نُسُكُ شَاةٍ وَالنُّسُكُ بِمَكَّةَ