It was narrated that Ibn ‘Abbas said:
“Allah enjoined the prayer upon the tongue of your Prophet (ﷺ): Four Rak’ah while a resident and two Rak’ah when traveling.”