Aslam

Surah Az-Zumar — 39:18
ٱلَّذِينَ يَسۡتَمِعُونَ ٱلۡقَوۡلَ فَيَتَّبِعُونَ أَحۡسَنَهُۥٓۚ أُوْلَـٰٓئِكَ ٱلَّذِينَ هَدَىٰهُمُ ٱللَّهُۖ وَأُوْلَـٰٓئِكَ هُمۡ أُوْلُواْ ٱلۡأَلۡبَٰبِ
those who listen to what is said and follow the best of it. These are the ones ˹rightly˺ guided by Allah, and these are ˹truly˺ the people of reason.

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.

Read Tafsir Ibn Kathir