Is AUTHOR wrong in the post ? POST : This just happened today and I felt really bad about it

Also I'm bad at phrasing so yeah.

So today, I met my friend on the train so I tried to tell a joke where I walked up to him and said "Your mother pass away" as a joke. (This joke was a common joke at my school)

Unluckily his mother was going through a tough time. She was going through a surgery where she had a 50-50 chance of survival which I had no idea of.

Now I feel really guilty and tried apologising to him but he wanted to be left alone

Would I be the asshole here?