In his book al-Ma'arif...
In his book al-Ma'arif, after referring to the disagreement among people regarding his name, and that he was from a tribe in Yemen called Dous, stated what follows: "Abu Hurayrah said: I grew up as an orphan, and migrated as a destitute, and was a servant hired by Bisrah bint Ghazwan with my pay being only some food to sustain on... I used to serve them when they got down, and urge forward by singing when they mounted the horsebacks.
And I was nicknamed with Abu Hurayrah because of having a little pussy (hirrah) I used to play with." His coming to Medina and Going to Khaybar: After passing the thirty, Abu Hurayrah came to al-Medina, when the Prophet (S) was out (participating) in the Battle of Khaybar which took place in the seventh Hijrah year. Ibn Sa'd in al-Tabaqat al-kubra, writes: The Dousis including Abu Hurayrah arrived at al-Madinah while the Messenger of Allah was in Khaybar.
Thereat the Messenger asked his to give Abu Hurayrah a share from the booty, which they did. And due to being poor, he betook himself to the Siffah 359 after r returning to al-Madina, living in it as long as he was residing in al-Madinah, being the most famous among those frequenting to it. Reason of His hip to the Prophet: Abu Hurayrah was frank and honest in revealing the reason behind his companionship to the Prophet (S), as he was honest in uncovering the truth about his growth.
He didn't claim that he kept his company out of affection and seeking guidance — as the case with other Muslims but he said: "I kept his company for only filling my abdomen" In a hadith reported by Ahmad and the two Shaykhs (al-Bukhari and Muslim), from Sufyan, from al Zuhri, Abd al-Rahman al-A'raj 360 said: "I heard Abu Hurayrah saying: I was a destitute man, who used to keep the company of the Messenger of Allah in return for filling my belly." In another narration by Muslim, he said: I used to serve the Messenger of Allah, and according to him also...
for satiating my abdomen." In another narration by Muslim. He said: I was a destitute man, serving the Messenger of Allah in return for satiating my belly. In another narration by him too. I accompanied the Messenger of Allah (as a servant) with satiating my abdomen in return. In history books it is recorded that he was gluttonous and greedy, being fed everyday in the Prophet's house, or the house of any of his to the extent that some of them were averse to him.