F-5.8
If only wearing enough to clothe one's nakedness, one's prayer is valid, though it is recommended to place something on one's shoulders even if only a piece of rope.
If one does not have clothes but is able to conceal part of one's nakedness, one must cover the front and rear private parts. If only one of these two can be covered, it must be the front. If one has no clothes at all, then one performs the prayer without clothes and need not make it up later.