Commentators explain that the sun and moon being "ashamed" is powerful poetic language. It signifies that when God establishes His final kingdom, His glory will be so magnificent that it will outshine and diminish all other sources of light and power, including earthly rulers and even the celestial bodies themselves. All human and created splendor will pale in comparison to the glory of God's personal reign.