Sunan an-Nasa'i, Book 23, Hadith 152 (Nasa'i 2591)

It was narrated from 'A'idh bin 'Amr that:

a man came to the prophet and asked him and he gave him, and when he placed his foot on the threshold the Messenger of Allah said: "If you knew how bad begging is, no one would go to anyone else and ask him for anything."