It is my frequent experience that God is so Benevolent and Merciful that when in His Wisdom He does not accept a prayer, He accepts some other prayer in place of it which is like it. As He has said:
مَا نَنسَخۡ مِنۡ اٰيَةٍ أَوۡ نُنسِھَا نَأۡتِ بِخَيۡرٖ مِّنۡنَآ أَوۡ مِثۡلِھَآ ۗ أَلَمۡ تَعۡلَمۡ أَنَّ ٱللَّهَ عَلَىٰ كُلِّ شَيۡءٖ قَدِيرٌ
…Be not content with thinking that you pray every day and that the whole of salat [formal prayer] is prayer, for the prayer which issues after understanding and through grace is of a different type altogether. It is something that destroys; it is a fire that melts; it is a magnetic power that draws mercy and it is a death which in the end revives. It is a fierce inundation which finally becomes a vessel. Every frustration is remedied by it and every poison becomes an antidote through it.
Hazrat Mirza Ghulam Ahmad (as), Malfuzat – Volume II (Farnahm, Surrey: Islam International Publications Ltd., 2019), 225-226.
 ‘Whatever Sign We abrogate or cause to be forgotten, We bring one better than that or the like thereof. Dost thou not know that Allah has the power to do all that He wills?’ – The Holy Qur’an, 2:107.