God was pleased with the believers , when they pledged allegiance to you under the tree . He knew what was in their hearts , and sent down serenity upon them , and rewarded them with an imminent conquest .