Borrowing from Englishpyjama, from English (19th century) pai jamahs "loose trousers tied at the waist, worn by Muslims in India", adopted by colonials, especially for nightwear, probably from Hindiपैजामा(paijāmā, “pajama”), itself from Persianپايجامه(paejamah) "leg clothing"