history
溜须 (smooth the whiskers) traces back to a Song-dynasty story in which chancellor 寇准's beard caught food; his subordinate 丁谓 rushed to wipe it for him, earning lasting ridicule. 拍马 comes from the Mongol habit of patting each other's horses in praise. The two fused into a single phrase for obsequious flattery.