It was narrated that 'Aishah said: "The first time the Salah was enjoined it was two Rak'ahs, and it remained as such when traveling, but the Salah while resident was made complete".
The Prophet Muhammad ﷺ taught us about the importance of praying regularly and with full concentration so as to reap its benefits both spiritually and physically. He also taught us how many units should be included in each prayer depending on our circumstances at any given time which shows his great attention to detail even when it comes to matters related to worshiping Allah SWT .