And [ mention , O Muhammad ] , when Moses said to his people , " O my people , why do you harm me while you certainly know that I am the messenger of Allah to you ? " And when they deviated , Allah caused their hearts to deviate .