Gheranda Samhita · by Gheranda (teaching Chanda Kapali)
Chapter 7 · Samadhi
समाधियोगः
घटाद्भिन्नं मनः कृत्वा ऐक्यं कुर्यात् परात्मनि ।समाधिं तं विजानीयान्मुक्तसंज्ञो दशादिभिः ॥ ३ ॥
Also in Hatha Yoga Pradipika 4.7
He makes the mind separate from the body (the pot). He joins it with the supreme self. Know that as samadhi (deep absorption). His awareness is then freed from the states and the rest.
Simple meaning: Samadhi is joining the mind to the supreme self, apart from the body.
अहं ब्रह्म न चान्योऽस्मि ब्रह्मैवाहं न शोकभाक् ।
I am Brahman. I am free and without sorrow.
शाम्भव्या चैव खेचर्या भ्रामर्या योनिमुद्रया ।
Four practices bring four kinds of samadhi.
पञ्चधा भक्तियोगेन मनोमूर्च्छा च षड्विधा ।
Devotion and the stilled mind make six kinds of raja yoga. Know each one.