It is narrated from Sayyiduna A'idh bin Amr al-Muzani (may Allah be pleased with him) that he said: We were with our Prophet (peace and blessings be upon him) when suddenly a Bedouin was insisting persistently in asking him (peace and blessings be upon him), saying: "O Messenger of Allah! Give me food. O Messenger of Allah! Give me something." So the Messenger of Allah (peace and blessings be upon him) got up and entered the house, took hold of the two side-posts of the room, and turned his face towards us and said: "By the One in whose Hand is the soul of Muhammad (peace and blessings be upon him)! If you knew what I know about (the evil of) asking, no man would ask another man while he has provision for spending a night." Then he (peace and blessings be upon him) ordered that food be given to him.
Shu'bah narrated it from Bistam, from Abdullah bin Khalifah.
Related hadith on this topic