Narrated Abu Huraira:
Allah's Messenger (ﷺ) said, "Adam and Moses met, and Moses said to Adam "You are the one who made people miserable and turned them out of Paradise." Adam said to him, "You are the one whom Allah selected for His message and whom He selected for Himself and upon whom He revealed the Torah." Moses said, 'Yes.' Adam said, "Did you find that written in my fate before my creation?' Moses said, 'Yes.' So Adam overcame Moses with this argument."
USC-MSA web (English) reference: Vol. 6, Book 60, Hadith 260
Arabic reference: Book 65, Hadith 4736