Bhagavad Gita › Chapter 9: Raja Vidya Raja Guhya Yoga › 9.30
Bhagavad Gita 9.30
Meaning and translation
अपि चेत्सुदुराचारो भजते मामनन्यभाक्।
साधुरेव स मन्तव्यः सम्यग्व्यवसितो हि सः॥
api cetsudurācāro bhajate māmananyabhāk
sādhureva sa mantavyaḥ samyagvyavasito hi saḥ
Even if a very ill-conducted man worships me, not worshipping any one else, he must certainly be deemed to be good, for he has well resolved.
English translation by Kashinath Trimbak Telang (1882), public domain.
What this verse means
Even someone who has lived badly is to be counted as good once they have firmly turned. It is the direction you are facing that counts. It is not too late.