Seeking knowledge comes first.
We have to know how to perform obligatory acts of worship before performing them. The same goes for any action. We seek knowledge of how to perform this act in accordance with Quran and Sunnah...then we perform the act....
there is an Aya in the Quran but I could not find now....it starts like this - know it is Allah.....
It means we have to know who is Allah, His names, attributes in order to know how powerful Allah is....
This Aya shows that we should know who is Allah, before starting to worship Him...
Allah knows best...