Surah Az-Zumar — Ayah 18 (39:18)
ٱلَّذِينَ يَسۡتَمِعُونَ ٱلۡقَوۡلَ فَيَتَّبِعُونَ أَحۡسَنَهُۥٓۚ أُوْلَٰٓئِكَ ٱلَّذِينَ هَدَىٰهُمُ ٱللَّهُۖ وَأُوْلَٰٓئِكَ هُمۡ أُوْلُواْ ٱلۡأَلۡبَٰبِ ١٨
English translation (Saheeh International)
Who listen to speech and follow the best of it. Those are the ones Allāh has guided, and those are people of understanding.
Brief commentary
Those who listen to what is said, distinguish between good and evil, and follow the best speech because of the benefit it contains. Those who possess these attributes are the ones whom Allah has given guidance and they are the ones who have sound intellect.