It was narrated that ‘Aishah said: “The sun was eclipsed during the time of the Messenger of Allah صلی اللہ علیہ وآلہ وسلم
, and the Prophet صلی اللہ علیہ وآلہ وسلم commanded a caller to call out that prayer was about to begin in congregation. So they gathered and formed rows, and he led them in prayer, bowing four times in two Rak’ahs and prostrating four times.” (Sahih)