after many fruitless attempts to gain admittance to the prison , she found a strongly grated window in an unguarded part of the building , which lighted the dungeon of the unfortunate muhammadan , who , loaded with chains , waited in despair the execution of the barbarous sentence .