The verse is


2:31


And He taught Adam the names - all of them. Then He showed them to the angels and said, "Inform Me of the names of these, if you are truthful."

— Saheeh International


He taught Adam the names of all things, then He presented them to the angels and said, “Tell Me the names of these, if what you say is true?”

— Dr. Mustafa Khattab, the Clear Quran


And He taught Adam all the names, then showed them to the angels, saying: Inform Me of the names of these, if ye are truthful.

— Pickthall




It was not to challenge them but to show about the special Quality granted by Allah to the humans, which was not granted to angels.





Outlinks

*Verse 2:31 - other translation ⩉ 
*Tafsir Ibn Kasir ⩉ 
*Quran Reflect ⩉ 
*Quran-Wiki ⩉