Imams (a.s.) have informed: We infallibles, all of us are same in obligation of obedience, knowledge, understanding and cognition of lawful and prohibited but the Holy Prophet (s.a.w.s.) and Ameerul Momineen (a.s.) have precedence over us.
Hayaat al-Quloob v 2 chap 9