This universal mind concept is called “panpsychism.”
From Wikipedia:
In philosophy, panpsychism is the view that mind or soul is a universal feature of all things, and the primordial feature from which all others are derived.
The panpsychist sees him or herself as a mind in a world of minds.
Panpsychism is one of the oldest philosophical theories, and can be ascribed to philosophers like Thales, Plato, Spinoza, Leibniz and William James.
Panpsychism can also be seen in eastern philosophies such as Vedanta and Mahayana Buddhism.
During the 19th century, Panpsychism was the default theory in philosophy of mind, but it saw a decline during the latter half of the 20th century with the rise of logical positivism.
The recent interest in the hard problem of consciousness has once again made panpsychism a mainstream theory.