It's from Goladhyaya of Siddhanta Shiromani, a work of Bhaskaracharya (a great mathematician and astronomer lived in 12th century) on astronomy.
Siddhanta Shiromani has four parts on particular subject/area:
- Leelavati - Arithmetic
- Bijaganita - Algebra
- GrahaganitAdhayaya - Astronomy
- Goladhyaya - Astronomy
The verse quoted in question is from Goladhyaya.
You can read Goladhyaya in Sanskrit at Internet Archive. Quoting page-30 from book for reference (Indicated the verse with box):

Quoting the text from Sanskrit Wikisource:
यथोष्णताफनलयोश्च शीतता विधौ ङतिः के कठिनवमश्मनि ।
मरुच्चलो भूरचला स्वभावतो यतो विचित्रा बत वस्तुशक्तयः। ५॥
आकृष्टिशक्तिश्च मही तया यरखस्थं गुरु स्वाभिमुखं स्वशक्या ।
आकृष्यते तपततीव भाति समे समन्तात् पतत्वियं खे ॥ ६ ॥
IAST of the emphasized verse is:
ākṛṣṭiśaktiśca mahī tayā yarakhasthaṃ guru svābhimukhaṃ svaśakyā ।
ākṛṣyate tapatatīva bhāti same samantāt patatviyaṃ khe ॥ 6 ॥
tvaya yat
which meansfrom you
. Do you have a prose order for this?