These hadeeths are concerning the undesirability of wearing shoe or sock on one leg. One should remove them all leaving both legs without wearing anything or one should wear both. You should note that wearing shoes and walking barefooted are both Sunnah. That is why the Prophet ﷺ forbade too much comfort(1) and instructed walking without wearing shoes sometimes. Therefore, one should wear shoes in line with the Sunnah, but one should also walk barefooted at times before people in order to manifest this Sunnah which people may criticize. When they see someone walking barefooted, they say, 'What is this? This is an act of ignorance. This is an error!' This is because the Prophet ﷺ used to forbid too much comfort and instructed walking barefooted sometimes.
You should start with the right leg when putting on the shoes and start with the left leg when removing them. Also, when you wear shoes and need to enter the mosque with your shoes, you should check them. If they are carrying any impurity or filthy substance, you should rub them on the ground until they are free of such impurities and the filthy substance. Thereafter, you may observe Salat with the shoes. This is part of the Sunnah. The Prophet ﷺ said, "Act differently from the Jews by praying in your shoes."(2) This is because the Jews do not pray in their shoes. Therefore, it is Sunnah for one to pray while putting on one's shoes just as many people do observe Salat with their socks. There is no difference between the socks and shoes, but some people disapprove the latter because it is an abandoned Sunnah.
Praying in the mosque with your shoes should be done in the mosque whose floor is like that of the previous generation. Stones, gravels, sands and the like were used as surface in the mosque of the past generation. But now, the mosques are well decorated with carpets and if people should enter (with shoes), they will definitely stain the mosque with (filth). This is because many people have no concern for
the state of their shoes. Hence, scholars hold that one should not enter mosques with shoes considering that the mosques are decorated with expensive carpets which can easily be soiled if people were allowed to enter with shoes.
If someone wants to implement the Sunnah (of praying while putting on the shoes), he should pray in his shoes in his house. This may be Tahajjud Prayer, the stipulated voluntary prayers and the likes. With that, he would be complying with the command of the Prophet ﷺ in his saying, “The Jew do not observe prayer wearing their shoes.”
Then he - may Allah shower blessings on him- mentioned the hadeeth of Abu Hurairah (may Allah be pleased with him) that the Prophet ﷺ forbade that one should put on one leg of his shoes. That is, he should either wear both legs or take both of them off. It is forbidden to wear one and leave the other without a shoe. What that signifies - Allah knows best - is that the religion of Islam came with justice even in the aspect of clothing. You should not wear shoe only on a leg because that is an act of injustice to the other leg which is left bare.
That is why the Prophet ﷺ forbade walking in one shoe. The scholars said it is forbidden to wear a single shoe even if one is going to amend the other shoe. Rather, you should amend the other shoe before putting on the pair. That is why in the second hadeeth of Abu Hurairah (may Allah be pleased with him), the Prophet ﷺ said: “When the lace of one of the shoes of any one of you is cut off, he should not walk with the other until he had the lace repaired then he can wear them both.”
As for the hadeeth of Jabir (may Allah be pleased with him) reported by Abu Dawud - may Allah shower blessings on him, the Prophet ﷺ forbade a person from wearing (tying up) his shoes while standing. This is regarding a shoe that requires proper handling before putting it on. But the well-known shoes today are such that one can put them on while standing, hence they are not included (in this hadeeth). The shoes now available are easy to wear and (also) easy to remove.
Allah alone grants success.