The Messenger of Allah ﷺ was on Mount Hira along with Abu Bakr and Umar, Uthman, Ali, Talha, and Zubayr when the rock began to shake. The Messenger of Allah ﷺ said, "Be still, for there is none upon you but a prophet, a truthful one, or a martyr."
حدثنا قتيبة حدثنا عبد العزيز عن سهيل عن أبيه
أن رسول الله ﷺ كان على حراء هو وأبو بكر وعمر وعثمان وعلى وطلحة والزبير فتحركت الصخرة فقال رسول الله ﷺ اهدأ فما عليك إلا نبي أو صديق أو شهيد