Sahih Muslim – Hadith No : 6241

‘Amr reported: I said to ‘Urwa: How long did Allah’s Apostle (may peace be upon him) stay in Mecca? He said: For ten years. I said: Ibn Abbas says it is some years above ten. He (‘Urwa) sought forgiveness for him and said: His statement is based on the verse of a poet.

Hadith In Arabic Text :

وحدثنا ابن أبي عمر، حدثنا سفيان، عن عمرو، قال قلت لعروة كم لبث النبي صلى الله عليه وسلم بمكة قال عشرا ‏.‏ قلت فإن ابن عباس يقول بضع عشرة ‏.‏ قال فغفره وقال إنما أخذه من قول الشاعر ‏.‏

Chapter : The Book Pertaining to the Excellent Qualities of the Holy Prophet (may Peace be upon them) and His – كتاب الفضائل