Ibn 'Abbas reported that the Messenger of Allah (ﷺ) observed in Madinah seven (rak'ahs) and eight (rak'ahs), i. e. (be combined) the noon and afternoon prayers (eight rak'ahs) and the sunset and 'Isha' prayers (seven rak'ahs).
Hadith ReferenceSahih Muslim / The Book of Prayer - Travellers / Hadith: 705