Ibn 'Abbas reported: Allah has prescribed the prayer through the word of your Prophet (صَلَّی اللَّهُ عَلَيْهِ وَسَلَّمَ) as four rak'ahs when resident, two when travelling, and one when danger is present.
Hadith Referenceصحيح مسلم / كتاب صلاة المسافرين وقصرها / 687
Ibn 'Abbas reported: Allah has prescribed the prayer by the tongue of your Apostle (صَلَّی اللَّهُ عَلَيْهِ وَسَلَّمَ) as two rak'ahs for the traveller, four for the resident, and one in danger.
Hadith Referenceصحيح مسلم / كتاب صلاة المسافرين وقصرها / 687
Anas reported: Someone happened to pass by Allah's Apostle (ﷺ) with a sacrificial camel, or a sacrificial animal, whereupon he said: Ride on it. He said: It is a sacrificial camel, or animal, whereupon he said: (Ride) even if (it is a sacrificial camel).