Imam Muhammed Baqir (as) said the following:

Allah will make his (the Mahdi’s) three hundred and thirteen persons join him including fifty women and all will gather at Mecca…”

Bihar al-Anwar, Volume: 52 Page: 223