Hello Mohammed,
have you defined the vlan 40 in the firewall vlan-group ?
see
firewall module 2 vlan-group 21,22
firewall vlan-group 21 10,68,75,90-93,100,401,420,450,510,552,600,651,692,901
inside the context vlan 100 is the outside
the above commands instructs on what vlans are passed on the internal trunk ports to and from the fwsm and the chassis backplane
Hope to help
Giuseppe