But for the grace of Allah upon thee ( Muhammad ) , and His mercy , a party of them had resolved to mislead thee , but they will mislead only themselves and they will hurt thee not at all . Allah revealeth unto thee the Scripture and wisdom , and teacheth thee that which thou knewest not .