Which principle about occasions of revelation is correct?

Introduction to Tafsir and the Five Principal Sciences of the Qur’an