Sayyiduna Iyad bin Himar al-Mujashi'i (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) said in a sermon: "Listen! My Lord has commanded me to teach you what you do not know, from what He has taught me this day." Then he narrated the hadith and said that Allah Almighty said: "O Muhammad, I have sent you only to test you and to test (others) through you, and I have revealed to you a Book which water cannot wash away or erase; you will recite it while asleep and while awake." And (he said): Indeed, Allah Almighty has commanded me to burn Quraysh. I said: "O my Lord, then they will crush my head and leave it like a loaf of bread." And Allah Almighty said: "Drive them out as they drove you out. Fight them and We will support you; spend and We will spend on you; send an army and We will send five like it; and, together with those who obey you, fight those who disobey you."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 17794