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.
darimi:119Muḥammad b. al-Mubārak > Yaḥyá b. Ḥamzah > Abū Salamah

[Machine] That the Prophet ﷺ was asked about a matter that occurs which is not in a book or a Sunnah, he said, "The pious believers will consider it."  

الدارمي:١١٩أَخْبَرَنَا مُحَمَّدُ بْنُ الْمُبَارَكِ حَدَّثَنَا يَحْيَى بْنُ حَمْزَةَ حَدَّثَنِي أَبُو سَلَمَةَ

أَنَّ النَّبِيَّ ﷺ سُئِلَ عَنِ الْأَمْرِ يَحْدُثُ لَيْسَ فِي كِتَابٍ وَلَا سُنَّةٍ قَالَ «يَنْظُرُ فِيهِ الْعَابِدُونَ مِنَ الْمُؤْمِنِينَ»