English : Vol. 1, Book 5, Hadith 1075
Grading supplied with this record: Sahih (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ الْمَلِكِ بْنِ أَبِي الشَّوَارِبِ، حَدَّثَنَا عَبْدُ الْوَاحِدِ بْنُ زِيَادٍ، حَدَّثَنَا عَاصِمٌ الأَحْوَلُ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ أَقَامَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ تِسْعَةَ عَشَرَ يَوْمًا يُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ فَنَحْنُ إِذَا أَقَمْنَا تِسْعَةَ عَشَرَ يَوْمًا نُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ فَإِذَا أَقَمْنَا أَكْثَرَ مِنْ ذَلِكَ صَلَّيْنَا أَرْبَعًا .
It was narrated that Ibn "Abbas said:
"The Messenger of Allah (ﷺ) stayed for nineteen days in which he shortened his prayer to two Rak'ah. So, whenever we stayed for nineteen days we would shorten our prayer to two Rak'ah, but if we stayed more than that we would pray four Rak'ah."
Full reference and source
English : Vol. 1, Book 5, Hadith 1075 Arabic : Book 5, Hadith 1128
View source on Sunnah.com (opens in a new tab)