عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ رَضِيَ اللَّهُ عَنْهُ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ وَأَصْحَابَهُ حَلَّقُوا رُؤُوسَهُمْ عَامَ الْحُدَيْبِيَةِ غَيْرَ عُثْمَانَ بْنِ عَفَّانَ وَأَبِي قَتَادَةَ رَضِيَ اللَّهُ عَنْهُمَا فَاسْتَغْفَرَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ لِلْمُحَلِّقِينَ ثَلَاثَ مَرَّاتٍ وَلِلْمُقَصِّرِينَ مَرَّةً
It is narrated from Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) that in the year of Hudaybiyyah, except for Sayyiduna Uthman (may Allah be pleased with him) and Sayyiduna Abu Qatadah (may Allah be pleased with him), the Messenger of Allah (peace and blessings be upon him) and his companions shaved their heads. Then the Messenger of Allah (peace and blessings be upon him) supplicated for forgiveness three times for those who shaved their heads and once for those who shortened their hair.