The Imams (a.s.) never did and would not do anything except because of the covenant of Allah, the Most Holy, the Most High, and a command from Him and they did not go beyond such limits

Al-Kāfi|Volume 1|Book 4|Chapter 61