Abu Hurairah (RAA) narrated that the Messenger of Allah (ﷺ) said:
"When one of you is flogging (while inflicting a prescribed punishment) he should avoid the face." Agreed upon. (JA)
English reference (JA): Book 10, Hadith 1283 (JA)
Arabic reference (JA): Book 10, Hadith 1244 (JA)