Hadith.2687 - Zurara asked Abu Ja'far (as) about a person in the state of ihram who has flies landing on their face, preventing them from sleeping, and whether they may cover their face when they wish to sleep.
Imam (as) said: "Yes."
Al-Kāfi #1251“I once asked abu Ja’far (a.s.), about a man who covers his face when sleeping because of flies that bother him. He (the Imam) said, ’Yes,...