If for example during my salah , I think about something bad , without do it intentionally makes my salah baatil?

For example, I prayed, and one music just come to my mind and I tried to directly ignore it and change my mind to be more concentrated and continued my prayer.
Is it ok? Or I have to repeat my namaz again?

Thoughts in the min do not invalidate the prayers