In recent decades, the rising penetration of various types of distributed energy resources has made interactions between all types of energy inevitable. In this respect, energy hubs are created with the aim of considering the interactions between multi-carrier energy systems throughout the smart grids. In this research, optimal scheduling of the multi-energy hubs is considered in the day-ahead market with the aim of minimizing the energy hub's cost. Because of the high usage of the clean energy production potential by employing the wind turbines and PV panels at each energy hub, the proposed model will mitigate the greenhouse gas emissions through reducing the operation of the gas-fired systems over the scheduling horizon. The combined cooling/heating and power system is also used as a backup unit for the stochastic producers to ensure energy supply with minimum load shedding. Moreover, electrical and thermal energy storage devices are also employed for storing energy during time intervals when there is a large amount of clean and free energy production. The Monte-Carlo simulation approach is used for modeling the uncertain behaviors of the stochastic producers and fast forward selection method is also used for the scenario reduction process. The flexibility of the energy demand is also investigated using demand response programs. In order to validate the effectiveness of the proposed model, IEEE 10-bus standard test system integrated with distributed energy resources is used. Simulation results demonstrate the applicability and usefulness of the proposed model in the energy management of multi energy hubs.