The Swiss star held talks with AS Roma - but the Italian club were unable to sell players to raise the funds.
Behrami, 25, said: "I am disappointed the deal failed to go through - that is for certain.
"Avram Grant gave me his permission to speak with Roma.
"But he also said he needs me, with West Ham bottom of the table.
"I'm sure I'll still get to play for them."