There is no mention of this in any of the books of hadith. It is very famous, even quoted in a number of books of fiqh, however no-one has mentioned a source for it.