Hadith 334
من نسي مسح الراس وذكر وهو يصلي ووجد فى لحيته بللا فلياخذ منه ويمسح راسه فان ذالك يجزيه فان لم يجد فيها بللا فليعد الصلاة والوضوء
"If someone forgets to wipe his head and remembers it during the prayer, if he finds moisture in his beard, he should wipe with it; this will suffice for him. But if he does not find moisture, he should repeat the prayer and ablution."