It is narrated from Maymun bin Mehran, he said: I was sitting with Ibn Abbas (may Allah be pleased with them) when a man came and sat down. I had not seen a man with longer hair than him. He said: I have entered into Ihram while having this hair. Ibn Abbas (may Allah be pleased with him) said: Tie up the hair above your ears. The man then said: I kissed a woman other than my wife. Ibn Abbas (may Allah be pleased with him) said: "Your mouth has committed adultery." The man then said: I saw a louse and threw it away. Ibn Abbas (may Allah be pleased with him) said: "This is such a lost thing that there is no benefit in searching for it."
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 914
Hadith Takhrijإسناده صحيح: أخرجه البيهقي 5 / 213 - وفي المعرفة السنن والآثار له (3243)۔