Sahih Muslim Book 54, Hadith 26
I asked my Lord three things and He has granted me two but has withheld one. I begged my Lord that my Ummah should not be destroyed because of famine and He granted me this. And I begged my Lord that my Ummah should not be destroyed by drowning (by deluge) and He granted me this. And I begged my Lord that there should be no bloodshed among the people of my Ummah, but He did not grant it.
Thauban reported that Allah's Messenger (ﷺ) said. Verily, Allah drew the ends of the world near me until I saw its east and west, and He bestowed upon me two treasures, the red and the white. The rest of the hadith is the same.
Amir b. Sa'd reported on the authority of his father that Allah's Messenger (ﷺ) came with a group of his Companions and he passed by the mosque of Banu Mu'awiya. The rest of the hadith is the same.