Allah was certainly pleased with the faithful when they swore allegiance to you under the tree . He knew what was in their hearts , so He sent down composure on them , and requited them with a victory near at hand