Reference: Surah Al-Fath (Victory) – Quran, Chapter 48, Verse 18: Arabic and English Translation
18. Indeed, Allah was pleased with the believers when they gave their Bai’a (pledge) to you (O Muhammad ) under the tree, He knew what was in their hearts, and He sent down As-Sakinah (calmness and tranquillity) upon them, and He rewarded them with a near victory, (Translation by Muhsin Khan / Hilali)
Allah was much pleased with the believers when they swore fealty to you under the tree. He knew what was in their hearts. So He bestowed inner peace upon them and rewarded them with a victory near at hand (Translation by Abu Al-Alaa Maududi)
Allah’s Good Pleasure was on the Believers when they swore Fealty to thee under the Tree: He knew what was in their hearts, and He sent down Tranquillity to them; and He rewarded them with a speedy Victory; (Translation by Yusuf Ali)


See Full Surah Al-Fath