O you who believe , obey God and the Prophet and those in authority among you ; and if you are at variance over something , refer it to God and the Messenger , if you believe in God and the Last Day . This is good for you and the best of settlement .