Surah An- Nisa: 59
O you who believe! Obey Allah and obey the Messenger, and those of you who are in authority. If you differ in anything amongst yourselves, refer it to Allah and His Messenger, if you believe in Allah and in the Last Day. That is better and more suitable for final determination.
Surah An- Nisa: 147
Why should Allah punish you if you have thanked and have believed in Him. And Allah is Ever All-Appreciative, All-Knowing.