It is narrated from Sayyiduna A'idh bin Amr (may Allah be pleased with him) that a man came to the Prophet (peace and blessings be upon him) and asked him (for something), and he (peace and blessings be upon him) gave to him. When he placed his foot on the threshold of the door, the Messenger of Allah (peace and blessings be upon him) said: "If you knew what (evil) there is in asking, no one would go to anyone to ask him for something."
Imam al-Nasa'i (may Allah have mercy on him) narrated it like this.
Imam Abu Hatim al-Razi (may Allah have mercy on him) said: "(The narrator's name) is Khalifah bin Abdullah, and it has also been said: Abdullah bin Khalifah."
Related hadith on this topic