O King, whenever the yogī desires to leave this planet of human beings, he should not be perplexed about the proper time or place, but should comfortably sit without being disturbed and, regulating the life air, should control the senses by the mind.
Srimad Bhagavata Purana
श्रीमद्भागवतमहापुराणम्
मूल श्लोकः
स्थिरं सुखं चासनमास्थितो यति- र्यदा जिहासुरिममङ्ग लोकम् । काले च देशे च मनो न सज्जयेत् प्राणान् नियच्छेन्मनसा जितासुः
sthiraṃ sukhaṃ cāsanamāsthito yati- ryadā jihāsurimamaṅga lokam | kāle ca deśe ca mano na sajjayet prāṇān niyacchenmanasā jitāsuḥ
SB 2.2.15