I couldn’t find it, so I guess it might be a separate sentence, because there are so many quotes on the Internet without marking the source. It should belong to Whitman's poetic point of view, which is equivalent to famous quotes or something. At least it's not in "Leaves of Grass". You can also try to look it up in "Typical Days".