بسم الله الرحمن الرحيم
(Fatwa: 192/160/B=01/1435)
If you responded the salam in your heart and did not pronounce the words ‘walaikumussalam’ by tongue, then your salah was valid. But, if you pronounced or spoke it then salah shall be nullified.
Allah knows Best!
Darul Ifta,
Darul Uloom Deoband
