Sura Al-Fath

48:18

۞ لَّقَدْ رَضِىَ ٱللَّهُ عَنِ ٱلْمُؤْمِنِينَ إِذْ يُبَايِعُونَكَ تَحْتَ ٱلشَّجَرَةِ فَعَلِمَ مَا فِى قُلُوبِهِمْ فَأَنزَلَ ٱلسَّكِينَةَ عَلَيْهِمْ وَأَثَٰبَهُمْ فَتْحًۭا قَرِيبًۭا

GUD SÅG med välbehag på de troende när de svor dig trohetsed under trädet; Han visste nämligen vad de [tänkte] i sitt innersta. Han lät deras sinnen fyllas av lugn och tillförsikt och lovade dem en snar seger som belöning

Tafsir 48:18

Verily, Allah was pleased with the believers when they were giving their oaths to you at Ḥudaybīyyah i.e. Bay‘at Al-Riḍwān under the tree. Allah knew of the faith, sincerity and honesty in their hearts and sent down tranquility on their hearts. And He rewarded them for it with a victory in the near future i.e. the victory over Khaybar, as consolation for them missing out on being able to enter Makkah.