The Book of Prayers (Kitab Al-Salat)
Muslim :: Book 4 : Hadith 1463
Ibn 'Abbas reported: Allah has prescribed the prayer through the word of your Prophet (may peace be upon him) as four rak'ahs when resident, two when travelling, and one when danger is present.