O People who Believe ! Obey Allah and the Noble Messenger and those amongst you who are in authority ; so if there is a dispute amongst you concerning any matter , refer it to Allah and the Noble Messenger ( for judgement ) if you believe in Allah and the Last Day ; this is better and has the best outcome .