Sahih Muslim Book 6, Hadith 65
I observed with the Messenger of Allah (ﷺ) eight (rak'ahs) in combination, and seven rak'ahs in combination. I (one of the narrators) said: O Abd Sha'tha', I think that he (the Holy Prophet) had delayed the noon prayer and hastened the afternoon prayer, and he delayed the sunset prayer and hastened the 'Isha' prayer. He said: I also think so.
" I said to Ibn 'Abbas: What prompted him to do that? He said: So that his (Prophet's) Ummah should not be put to (unnecessary) hardship." And in the hadith transmitted by Mu'awiya (the words are):" It was said to Ibn 'Abbas: What did he intend thereby? He said he wanted that his Ummah should not be put to unnecessary hardship."
Ibn 'Abbas reported that the Messenger of Allah (ﷺ) observed in Medina 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).