It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: If any one of you enters the mosque and wants to clear his nose or spit, he should go far away and bury it. If he cannot do so, then he should spit into his garment.