And We appointed with Musa a time of thirty nights and completed them with ten (more), so the appointed time of his Lord was complete forty nights Qur'an .
The change from thirty nights to forty nights do not reflect a change in God's Knowledge, but only a change in the knowledge that Moses possessed.