The meaning and context of the verse
In the verses just before it, Allah says that the example of 'Isa (peace be upon him) is like that of Adam (peace be upon him), who was created from dust; being born without a father does not make him God or the son of God. When this truth had been made clear with proof and the opponent still insisted on arguing, he was invited to mubahalah as the final way to settle the matter.
“Mubahalah” means that two sides humbly call upon Allah, praying that His curse fall on whichever of them is lying. The verse uses the words “abna'ana” (our sons), “nisa'ana” (our women) and “anfusana” (ourselves), so that each side puts at stake what is dearest to it and shows how certain it is of its truth.
The story of the Najran delegation
In Sahih al-Bukhari it is narrated from Hudhaifah (may Allah be pleased with him) that two leaders of Najran, al-'Aqib and al-Sayyid, came to the Messenger of Allah ﷺ intending to hold the mubahalah. Then one of them said to the other: Do not do it; if he really is a prophet and we invoke curses on each other, neither we nor our offspring will succeed. So they did not hold the mubahalah; instead they made peace on the terms of giving what he ﷺ asked for, and requested that a trustworthy man be sent with them. He ﷺ sent Abu 'Ubaidah ibn al-Jarrah (may Allah be pleased with him) and called him the trustworthy one of this Ummah. According to one view, this delegation came in 9 AH.
Musnad Ahmad reports with an authentic chain from Ibn Abbas (may Allah be pleased with them both) that the Prophet ﷺ said: if those who came to the Prophet ﷺ to hold the mubahalah had gone out for it, they would have returned to their homes finding neither their wealth nor their families.
Ayat al-Mubahalah and the Ahl al-Bayt
In Sahih Muslim it is narrated from Sa'd ibn Abi Waqqas (may Allah be pleased with him) that when this verse was revealed, the Messenger of Allah ﷺ called 'Ali, Fatimah, Hasan and Husain (may Allah be pleased with them) and said: O Allah, these are my family. This is a great virtue of these four, and Ahl al-Sunnah regard love for them as part of faith.
At the same time, according to Ahl al-Sunnah the Ahl al-Bayt (the Prophet's household) is not limited to these four; in Surah Al-Ahzab the Quran also addresses the pure wives of the Prophet ﷺ as Ahl al-Bayt. So the correct position is that the Mothers of the Believers and these close family members of his ﷺ are all included in this honour, and the virtue of one is never a means of belittling another.
Key lessons
The first lesson is that a debate about belief is first settled with proof and knowledge; mubahalah is the last stage, when stubbornness remains even after the truth is clear. A group of scholars have written that one who is certain of the truth may invite such a stubborn opponent to mubahalah, but it is not a way to deal with minor disagreements or personal quarrels. The second lesson is that the Najran leaders' backing away from the mubahalah was itself an admission that they feared the Prophet ﷺ was truthful. The third is that Islam honoured its covenant with non-Muslims who made peace, and sent a trustworthy man to them.