كِلَاهُمَا عَلَى خَيْرٍ، وَأَحَدُهُمَا أَفْضَلُ مِنْ صَاحِبِهِ
“Both are engaged in good, but one is better than the other.”
Recognizing greater merit in one gathering does not dismiss the other; supplication is also worship. Learning makes it possible to understand belief, worship, dealings and conduct, and that knowledge can benefit more people. It can even improve the way one supplicates.
Example
Someone who does not know the requirements of prayer should not neglect learning on the assumption that supplication alone is sufficient. They can learn, practice correctly and pray for acceptance.
كِلَاهُمَا refers to both gatherings, and أَفْضَلُ is a comparative form meaning “better” or “more meritorious.”