Narrated Ibn Abbas (may Allah be pleased with them) that: Revelation descended upon the Prophet Muhammad (peace be upon him) at the age of forty years. He stayed in Mecca for thirteen years, then when the command for migration was given, he migrated to Medina and stayed there for ten years, then he passed away.