It is narrated from Sayyidah Aisha (may Allah be pleased with her) and Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) stayed in Makkah Mukarramah for ten years during which the Qur'an was being revealed to him, and he also stayed in Madinah Munawwarah for ten years.