Allah was well pleased with the believers when they swore allegiance to you under the tree. He knew what was in their hearts, so He sent down tranquillity upon them and He rewarded them with a speedy victory,
Meaning:-
Allegiance: loyalty, faithfulness.
Tranquility: peacefulness, restfulness.