"And if they had intended to go forth, they would have prepared for it some preparation," meaning: the hypocrites.
"But Allah disliked their marching forth," meaning: their going out; because He knows of them that they are spies for the polytheists against the believers, and because they walk among the believers with slander and corruption. "So He kept them back," meaning: He diverted them.