Salaamu alaykum wr wb. Bismillahi Rahmaani Rahiim.
What is the ruling of doing solat in prison cell that has a toilet seat or hole in the same room? If you’re locked up in the cell during the prescribed times and/or cannot perform solat anywhere else. Jazaakumullahu khayr.
Wa `alaykum salam,
Bismillahi-r Rahmani-r Rahim
As long as you have enough space that is free from najasa (filth) to make sujood, it is acceptable. If that is not possible, you can place a thick cloth/blanket on the floor and pray on it. If this is not possible , you can pray sitting down on the bed or chair.
(Fiqh Islami wa Addilatuh)
Allah Knows Best