Hadithcore
Mishkat al-Masabih, 1442

Ja'far b. Muhammad told in <i>mursal</i> form that the Prophet, Abu Bakr and ‘Umar said “God is most great” at the two festivals and when praying for rain seven times in the first <i>rak'a</i> and five times in the second. They prayed before the sermon, and recited the Qur’an in a loud voice. Shafi‘i transmitted it.

وَعَنْ جَعْفَرِ بْنِ مُحَمَّدٍ مُرْسَلًا أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَأَبَا بَكْرٍ وَعُمَرَ كَبَّرُوا فِي الْعِيدَيْنِ وَالِاسْتِسْقَاءِ سَبْعًا وَخَمْسًا وَصَلَّوْا قبل الْخطْبَة وجهروا بِالْقِرَاءَةِ. رَوَاهُ الشَّافِعِي

References1 variant
In-Book Reference
Book 4, Hadith 843