This is the verse 59 in Pādāravindaśatakam of Mūkapañcaśati. This comprises 500 verses in praise of Kāmākṣi. This verse says that all the planets are at Her feet. Worshiping Her with this verse will remove all planetary afflictions, says this verse.

दधानो भास्वत्तां अमृतनिलयो लोहितवपुः

विनम्राणां सौम्यो गुरुरपि कवित्वं च कलयन्।

गतौ मन्दो गङ्गाधर महिषि कामाक्षि भजतां

तमः केतुः मातः तव चरणपद्मो विजयते॥

dadhāno bhāsvattāṁ amṛtanilayo lohitavapuḥ

vinamrāṇāṁ saumyo gururapi kavitvaṁ ca kalayan |

gatau mando gaṅgādhara mahiṣi kāmākṣi bhajatāṁ

tamaḥ ketuḥ mātaḥ tava caraṇa padmo vijayate ||

O! Kāmākṣi! The Consort of the one who holds the river Ganges on His (Shiva) head (plaited hair)! Your lotus feet is like the shining Sun, abode of nectarine Moon, red colored Mars, compassionate Mercury, eternal Guru Jupiter, Venus who empowers poetic capabilities, sluggish walker Saturn, Rāhu and Ketu, mythical dragon’s head and tail.