The matching accounting concept follows the realization concept. First, the revenue is recognized and then we match the costs associated with the revenue. So costs are matched with revenue, the reverse would be an incorrect system.
This concept states that the revenue and the expenses of a transaction should be included in the same accounting period. So to determine the income of a period all the revenues and expenses (whether paid or not) must be included.