Sahih al-Bukhari #3689
Companions of the Prophet 62:39
Narrated Abu Huraira:
Allah's Messenger (ﷺ) said, "Among the nations before you there used to be people who were inspired (though they were not prophets). And if there is any of such a persons amongst my followers, it is 'Umar."