If you return something you’ve bought on your credit card, you won’t get the money back in cash. Instead, you’ll receive credit on your card.
How long it takes for the refund to appear on your credit card will depend on where you are in your credit card billing cycle at the time.