At the time of visiting a dangerous place
According to Imam Ja’far-e-Sadiq (a.s.)
if a person had to visit a place where he is afraid of something then he should recite the following ayat (verse):
رَبِّ اَدْخِلْنِىْ مُدْخَلَ صِدْقٍ وَّ اَخْرِجْنِىْ مُخْرَجَ صِدْقٍ وَّ اجْعَلْ لِّىْ مِنْ لَّدُنْكَ سُلْطَانًا نَصِيْرًا.
RABBE ADKHILNEE MUDKHALA SIDQIWN WA AKHRIJNEE MUKHRAJA SIDQIWN WAJ-A’L LEE MIL LADUNKA SULTAANAN NASEERAA.
“O My Lord! Cause me to enter a goodly entrance and cause me to go out (of) a goodly exit, and grant me from unto Thee an authority to assist (me)”
and when that thing or person comes in front of him, he should recite the Ayatul Kursi.