Based on an obligatory precaution, you should offer Maghrib prayer with the intention of fulfilling an actual obligation with uncertainty on whether it is being performed within its prescribed time or beyond it. After that, he should offer isha prayer twice, one shortened and one full.
Holy Quran called the wives of the Prophet (peace be upon him and holy progeny) as the mothers of believers. There is no doubt that this name applies to them, but there is no obligation to mention it every time the name of a wife is mentioned and this does not mean that they are excluded from committing sins. Everyone Allah Almighty creates is subject to the general divine rule that everyone bears the responsibilities of their actions, as Almighty Allah said: "And whoso doeth good an atoms weight will see it then, And whoso doeth ill an atoms weight will see it then." (99:7-8).
It has been reported in a narration that Imam Mahdi (peace be upon him) said: "Benefitting from me in my absence is as benefitting from the Sun when its disappears behind the clouds.”