['I felt bad for my friend. They were going through hard times so I bought them dinner']
That's so nice of you to be supportive to your friend through struggles.  Is it a long time struggle or something sudden?
I felt bad for my friend. They were going through hard times so I payed for their dinner