we were the receiving bank. can we after the fact return it, even if several days later?
if you want to return it, realize this is the bank's money you are sending back, as your customer already withdrew the $30,000, so there is nothing to take from the customer to return.
and speaking in very loose and general terms, if there were funds still in the account to cover the requested return, at a minimum you would want some form of indemnification letter from the ODFI that protects your bank when your customer comes after you for taking back a deposit in their account.