Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
malik:9-21Yaḥyá > Mālik > ʿAṭāʾ al-Khurāsānī > Saʿīd b. al-Musayyab

Yahya related to me from Malik from Ata al-Khurasani that he heard Said ibn al Musayyab say, "A traveller who has decided to remain somewhere for four nights does the prayer in full." Malik said, "That is what I prefer most out of what I have heard." Malik when asked about the prayer of a prisoner, said, "It is the same as the prayer of a person who remains in one place, except if he is travelling."  

مالك:٩-٢١حَدَّثَنِي يَحْيَى عَنْ مَالِكٍ عَنْ عَطَاءٍ الْخُرَاسَانِيِّ أَنَّهُ سَمِعَ سَعِيدَ بْنَ الْمُسَيَّبِ

قَالَ مَنْ أَجْمَعَ إِقَامَةً أَرْبَعَ لَيَالٍ وَهُوَ مُسَافِرٌ أَتَمَّ الصَّلاَةَ قَالَ مَالِكٌ وَذَلِكَ أَحَبُّ مَا سَمِعْتُ إِلَىَّ وَسُئِلَ مَالِكٌ عَنْ صَلاَةِ الأَسِيرِ فَقَالَ مِثْلُ صَلاَةِ الْمُقِيمِ إِلاَّ أَنْ يَكُونَ مُسَافِرًا