Question: why surah hujurat was revealed?
Answer: It is most likely revealed in 630 CE (or 9 AH), after the Conquest of Mecca and when Muhammad already ruled most of Arabia. ... Muslim historians, such as Al-Waqidi and Ibn Ishaq, linked the revelation of several verses to the conduct of a delegation from the Banu Tamim when they were in Medina to meet with Muhammad.