The term 'anal retentive' originates from Freudian psychoanalysis, describing a personality trait characterized by excessive orderliness, stubbornness, and a preoccupation with control and details. It is often associated with the anal stage of psychosexual development, where individuals may develop these traits as a result of overly strict toilet training.