Since you had voided the check months earlier, your general ledger no longer reflects 1) the original credit to the cash account, and 2) the original debit to another account. Now that the voided check has cleared the bank account, you will need to record the check in your general ledger. The entry will be a credit to the general ledger cash account and a debit (or debits) to the appropriate account.
It might be helpful to recall the bank reconciliation rule: Put it where it isn't. The old check, which you had voided, is now on the bank statement, but it is not in the cash account. Therefore, you need to put the check amount into the general ledger.