Sunan Ibn Majah – Hadith No : 1128

It wasnarrated that Ibn ‘Abbas said: “The Messenger of Allah (ﷺ)stayed for nineteen days in which he shortened his prayer to twoRak’ah. So, whenever we stayed for nineteen days we would shortenourprayer to two Rak’ah, but if we stayed more than that we wouldprayfour Rak’ah.”

Hadith In Arabic Text :

حدثنا محمد بن عبد الملك بن أبي الشوارب، حدثنا عبد الواحد بن زياد، حدثنا عاصم الأحول، عن عكرمة، عن ابن عباس، قال أقام رسول الله صلى الله عليه وسلم تسعة عشر يوما يصلي ركعتين ركعتين فنحن إذا أقمنا تسعة عشر يوما نصلي ركعتين ركعتين فإذا أقمنا أكثر من ذلك صلينا أربعا ‏.‏

Chapter : Establishing the Prayer and the Sunnah Regarding Them – كتاب إقامة الصلاة والسنة فيها