Was I wrong for telling my coworker “have a bad one” after he said “have a good one”?

Have my reasons to why I said what I said anyways he went ahead and vented to my friend what happened and said he wasn’t even expecting me to say that to him I feel little guilty but he made it sound like I really said something super not nice

Was I wrong for telling my coworker “have a bad one” after he said “have a good one”?
Post Opinion