Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) used to relate, about the prayer that the Messenger of Allah (peace and blessings be upon him) offered in Madinah on the day the sun was eclipsed, that he (peace and blessings be upon him) did not pray more than two rak'ahs, like the Fajr prayer (which is two rak'ahs).
Hadith Referenceالمعجم الأوسط / باب الميم / 9162
Hadith Takhrij«أخرجه مسلم فى «صحيحه» برقم: 902، وابن حبان فى «صحيحه» برقم: 2831، 2839، والنسائي فى «المجتبى» برقم: 1468 / 1، والنسائي فى «السنن الكبرى» برقم: 512، 1865، وأبو داود فى «سننه» (1/459) [دون رقم في الترقيم المختار]، والبيهقي فى «السنن الكبرى» برقم: 6397، 6394، والدارقطني فى «سننه» برقم: 1789، وأحمد فى «مسنده» برقم: 1889، والطحاوي فى «شرح معاني الآثار» برقم: 1953، والطبراني فى «الكبير» برقم: 10645، 11613»