Abdullah bin Hunayn reported,

Abdullah bin Abbas and Miswar bin Makhrama disagreed at al-Abwa.Abdullah bin Abbas said, "A person in the state of ihram may wash his head."Miswar said, "A person in the state of ihram may not wash his head."So Abdullah bin Abbas sent me to Abu Ayub al-Ansari, and I found him bathing between two posts, screened by a cloth. I greeted him.He asked, "Who is this?"I replied, "I am Abdullah bin Hunayn. Abdullah bin Abbas has sent me to you to ask how the Messenger of Allah ﷺ used to wash his head while in the state of ihram."Abu Ayub placed his hand on the cloth and lowered it until his head became visible to me. Then he said to a man who was pouring water for him, "Pour." So the man poured water over his head. Then Abu Ayub moved his head with his hands, bringing them forward and back, and said, "This is how I saw him ﷺ do it."

Bukhari 1840

Sahih

حدثنا عبد الله بن يوسف أخبرنا مالك عن زيد بن أسلم

عن إبراهيم بن عبد الله بن حنين عن أبيه

أن عبد الله بن العباس والمسور بن مخرمة اختلفا بالأبواء فقال عبد الله بن عباس يغسل المحرم رأسه وقال المسور لا يغسل المحرم رأسه فأرسلني عبد الله بن العباس إلى أبي أيوب الأنصاري فوجدته يغتسل بين القرنين وهو يستر بثوب فسلمت عليه فقال من هذا فقلت أنا عبد الله بن حنين أرسلني إليك عبد الله بن العباس أسألك كيف كان رسول الله ﷺ يغسل رأسه وهو محرم فوضع أبو أيوب يده على الثوب فطأطأه حتى بدا لي رأسه ثم قال لإنسان يصب عليه اصبب فصب على رأسه ثم حرك رأسه بيديه فأقبل بهما وأدبر وقال هكذا رأيته ﷺ يفعل

البخاري 1840صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Game animal penalties
Chapter
Bathing for the one in ihram
Numbering
Darussalam 1840
Bukhari 1840