The Prophet (peace and blessings be upon him) said: "Spitting in the mosque is a sin, and burying it in the earth is a good deed."