I don't know that it's specifically worded that way. But there are times God doesn't listen to some people's prayers.
John 9:31 is probably the closest to this.
Isa 1:15; "So when you spread out your hands in prayer, I will hide My eyes from you; Yes, even though you multiply prayers, I will not listen. Your hands are covered with blood.
Jer 7:16; "As for you, do not pray for this people, and do not lift up cry or prayer for them, and do not intercede with Me; for I do not hear you.
Jer 11:14;"Therefore do not pray for this people, nor lift up a cry or prayer for them; for I will not listen when they call to Me because of their disaster.
Jer 14:11; So the LORD said to me, "Do not pray for the welfare of this people.
Jer 14:12; "When they fast, I am not going to listen to their cry; and when they offer burnt offering and grain offering, I am not going to accept them. Rather I am going to make an end of them by the sword, famine and pestilence."
Deut 23:5; "Nevertheless, the LORD your God was not willing to listen to Balaam, but the LORD your God turned the curse into a blessing for you because the LORD your God loves you.
Job 35:13; "Surely God will not listen to an empty cry, Nor will the Almighty regard it.
Amos 5:21; "I hate, I reject your festivals, Nor do I delight in your solemn assemblies.
Amos 5:22; "Even though you offer up to Me burnt offerings and your grain offerings, I will not accept them; And I will not even look at the peace offerings of your fatlings.
Amos 5:23; "Take away from Me the noise of your songs; I will not even listen to the sound of your harps.
Ezek 8:18; "Therefore, I indeed will deal in wrath. My eye will have no pity nor will I spare; and though they cry in My ears with a loud voice, yet I will not listen to them."
John 9:31; "We know that God does not hear sinners; but if anyone is God-fearing and does His will, He hears him.
Prov 28:9; He who turns away his ear from listening to the law, Even his prayer is an abomination.
Pro 15:29 The LORD is far from the wicked, But He hears the prayer of the righteous.
2Chron 7:14; and My people who are called by My name humble themselves and pray and seek My face and turn from their wicked ways, then I will hear from heaven, will forgive their sin and will heal their land.
Zech 7:13; "And just as He called and they would not listen, so they called and I would not listen," says the LORD of hosts;