You cannot cancel a transfer after it has been approved by you. Due to the nature of blockchain technology, transactions cannot be reversed.
You can reach out to the contact and ask them to reject the transaction from their side. This way the funds remain in your account.