Name and why it is called so
The surah takes its name from the last word of its first verse, al-bayyinah, which means a bright and clear proof. The next verse itself explains that this proof is a Messenger from Allah who recites purified scriptures. In the hadith it is referred to by its opening words, "Lam yakunil-ladhina kafaru" (Those who disbelieved were not), which is why it is also called Surah Lam Yakun.
Time of revelation and background
On our site this surah is counted as Medinan, and its content also fits the setting of Medina, where the Muslims dealt directly with the People of the Book; however, some scholars have called it Meccan. One distinction of this surah is that, according to Sahih al-Bukhari and Sahih Muslim, Allah commanded the Prophet ﷺ to recite it to Ubayy ibn Ka'b. When Ubayy asked, "Did Allah mention me by name?" the Prophet ﷺ said, "Yes," and he wept.
Main themes
The surah states that the People of the Book and the idolaters were not going to leave their error until the clear evidence came to them, and that once it came, the People of the Book fell into disagreement after it. Yet they had been commanded only to worship Allah, keeping the religion sincerely for Him, turning to Him alone, to establish prayer and to give zakat. That is the upright religion.
Then it describes the end of two groups. Those who disbelieve will abide forever in Hell, and they are the worst of creatures. Those who believe and do righteous deeds are the best of creatures; their reward is Gardens of eternity, Allah is pleased with them and they are pleased with Him. This is for whoever fears his Lord. This is the summary of the tafsir of Surah Al-Bayyinah.