Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:3994Isḥāq b. Manṣūr > Yazīd > Yaḥyá > Muʿādh b. Rifāʿah

The one who asked (the Prophet) was Gabriel (refer to Hadith 5.327).  

البخاري:٣٩٩٤حَدَّثَنَا إِسْحَاقُ بْنُ مَنْصُورٍ أَخْبَرَنَا يَزِيدُ أَخْبَرَنَا يَحْيَى سَمِعَ مُعَاذَ بْنَ رِفَاعَةَ

أَنَّ مَلَكًا سَأَلَ النَّبِيَّ ﷺ وَعَنْ يَحْيَى أَنَّ يَزِيدَ بْنَ الْهَادِ أَخْبَرَهُ أَنَّهُ كَانَ مَعَهُ يَوْمَ حَدَّثَهُ مُعَاذٌ هَذَا الْحَدِيثَ فَقَالَ يَزِيدُ فَقَالَ مُعَاذٌ إِنَّ السَّائِلَ هُوَ جِبْرِيلُ عَلَيْهِ السَّلاَمُ