Overall meaning :
Allah Almighty directs the believers to remember His favour upon them and the covenant which He made with them whereby they obliged and bound themselves to give their full allegiance to the Prophet, may Allah bless him and grant him peace, to follow and support him, and to practise and preach his religion, and they solemnly promised to keep the covenant, saying, ‘We have heard and we will obey.’ He also instructs them to be mindful of Him by doing what He commands and avoiding what He forbids, stating that He has full knowledge of all the secrets of people’s hearts.
He further commands the believers to sincerely fulfil their duties to Him in all their obligations, and to bear witness to the truth. They should not allow their hatred for other people to swerve to wrong and depart from justice. Rather, they have to act justly under all circumstances, as doing so will bring them closer to perfect piety. They should also be mindful of Allah by doing what He commands and avoiding what He prohibits, for He is well-acquainted with what they do.
Then He states that He has promised the believers who do righteous deeds forgiveness of their sins and a rich reward—Paradise. As for those who disbelieve and deny His revelations, they will be destined for Hell to remain in it forever.
Next, He instructs the faithful to remember the favour which He bestowed upon you when some of their enemies intended to assault them, but He turned them away from them and prevented them from doing them any harm. He concludes the verse by commanding them to fear Him and be mindful of Him and to place their trust in Him alone.