Bhagavad Gita Chapter 9.30
api cet su-durācāro
bhajate mām ananya-bhāk
sādhur eva sa mantavyaḥ
samyag vyavasito hi saḥ
Translation
Even if one commits the most abominable action, if he is engaged in devotional service he is to be considered saintly because he is properly situated in his determination.