I said to Anas b. Malik: Did the Messenger of Allah (ﷺ) pray while putting on the shoes? He said: Yes.
Sahih Muslim Book 5, Hadith 74