Nafi' (may Allah have mercy on him) relates that Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) used to say: "When a man has only one garment, he should tie it (as a waist-wrap) and then pray, for I heard Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) saying this, and he used to say: 'When there is only one garment, do not wrap it (around the body) the way the Jews do.'"
Nafi' (may Allah have mercy on him) said: "And if I were to tell you that he attributed this to the Messenger of Allah (peace and blessings be upon him), I hope that I would not be lying."
Related hadith on this topic