He who does not find shoes to wear may wear socks, and he who does not find lower garment to wear may put on trousers.
Sahih Muslim Book 15, Hadith 7