Hadith.1338 - Sama'a ibn Mehran asked Imam Jafar ibn Muhammad Al-Sadiq عليه السلام about a man who is captured by polytheists, and the time for prayer arrives, but he fears that they will prevent him from praying.
Imam عليه السلام said: "He should pray by gesturing."