The Temple stands as the ultimate refuge for anyone who has been wronged, a place to seek true justice directly from God [ביאור שטיינזלץ]. When a human dispute reaches a point where an oath is taken within its sacred walls, the matter is elevated straight to Heaven for a divine ruling [רד״ק, ביאור שטיינזלץ].
God responds from Heaven to examine both parties involved in the oath. Divine justice operates with perfect precision, returning a wicked person's bad deeds directly upon their own head [מצודת דוד, ביאור שטיינזלץ]. This punishment targets either the individual who swears a false oath or the one who unjustly forces another to take an oath. Conversely, proving the righteous innocent applies to the person who swears truthfully or the one who had a rightful claim to demand the oath in the first place [מצודת דוד, רד״ק]. A clear example of this dynamic occurs in the case of a woman suspected of unfaithfulness. If she is guilty, she suffers the severe consequences of her actions. However, if she is proven innocent, she is justified and blessed with a child [רש״י].
Justice enacted within the Temple is unique in its speed and severity. While God is generally patient and slow to punish sinners, a false oath taken in the Temple desecrates the holiness of the site itself. Therefore, the offender receives no delay in punishment and no immediate forgiveness. This swift retribution is designed to instill a deep sense of awe and reverence for the sanctuary among all people [מצודת דוד, רד״ק].
The urgency of this divine response explains an unusual sequence in King Solomon's request. He asks God to first act and then judge, which seems backward since a trial normally precedes a sentence. However, this specific order reveals that God immediately activates the power of the oath and its potential curse the moment it is spoken. Only afterward does He judge exactly which party deserves to bear its weight, ensuring that the punishment falls strictly on the one who is truly guilty [מלבי״ם].