The Prophet – Peace be upon him – said: (If you want to wear your shoes, start with the right foot and if you want to take it off, start with the left. Or you should either wear them both at the same time, or take them both off.) Narrated by Muslim.
This Sunnah is repeated at day and night so many times; the Muslim wears and takes off his shoes to go out and come back from the Masjid, work, home, bathroom …etc, therefore, when you wear or take off the shoes according to the Sunnah with the intention of following the example of the Prophet – Peace be upon him – you will gain a lot of good deeds.