Freud references to Buddhism (he calls it “Yoga”)

One may hope to be freed from a part of one’s sufferings by influencing the drive impulses. This type of defence against suffering is no longer brought to bear on the sensory apparatus; it seeks to master the internal sources of our needs. The extreme form of this is brought about by killing off the drives, as is prescribed by the worldly wisdom of the East and practised by Yoga. If it succeeds, then the subject has, it is true, given up all other activities as well – he has sacrificed his life; and, by another path, he has once more only achieved the happiness of quietness. (RSE 21, 72)

Another friend of mine [Eckstein, a Buddhist monk] … has assured me that through the practices of Yoga, by withdrawing from the world, by fixing the attention on bodily functions and by peculiar methods of breathing, one can in fact evoke new sensations and coenaesthesias in oneself. (RSE 21, 67)